Phaser API Documentation

  Version: 
Video

Description:

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.

In Phaser 3.20 the properties were renamed to drop the 'Video' suffix.

Properties:
name type description
h264 boolean

Can this device play h264 mp4 video files?

hls boolean

Can this device play hls 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?

Type:
object
Since: 3.0.0
Source: src/device/Video.js (Line 7)