PokéRogue
    Preparing search index...

    Type Alias Video

    Determines the video support of the browser running this Phaser Game instance.

    These values are read-only and populated during the boot sequence of the game.

    They are then referenced by internal game systems and are available for you to access via this.sys.game.device.video from within any Scene.

    type Video = {
        getVideoURL: Function;
        h264: boolean;
        hasRequestVideoFrame: boolean;
        hls: boolean;
        m4v: boolean;
        mov: boolean;
        mp4: boolean;
        ogg: boolean;
        vp9: boolean;
        webm: boolean;
    }
    Index
    getVideoURL: Function

    Given an array of video URLs (or a single URL string), returns an object with url and type properties for the first entry that can be played by this browser, or null if none of the provided formats are supported.

    h264: boolean

    Can this device play h264 mp4 video files?

    hasRequestVideoFrame: boolean

    Does this device support the requestVideoFrameCallback API?

    hls: boolean

    Can this device play hls video files?

    m4v: boolean

    Can this device play m4v (typically mp4) video files?

    mov: boolean

    Can this device play mov video files?

    mp4: boolean

    Can this device play h264 mp4 video files?

    ogg: boolean

    Can this device play ogg video files?

    vp9: boolean

    Can this device play vp9 video files?

    webm: boolean

    Can this device play webm video files?