Skip to content

Commit 91c0b1c

Browse files
committed
Create VideoFileConfig.js
1 parent 312797d commit 91c0b1c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* @typedef {object} Phaser.Types.Loader.FileTypes.VideoFileConfig
3+
*
4+
* @property {(string|Phaser.Types.Loader.FileTypes.VideoFileConfig)} key - The key to use for this file, or a file configuration object.
5+
* @property {any} [urlConfig] - The absolute or relative URL to load this file from in a config object.
6+
* @property {string} [loadEvent] - The load event to listen for when _not_ loading as a blob. Either 'loadeddata', 'canplay' or 'canplaythrough'.
7+
* @property {boolean} [asBlob] - Load the video as a data blob, or via the Video element?
8+
* @property {boolean} [noAudio] - Does the video have an audio track? If not you can enable auto-playing on it.
9+
* @property {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
10+
*/

0 commit comments

Comments
 (0)