Fixed Audio and Video type defs. Fix #5295

This commit is contained in:
Richard Davey 2020-09-11 15:29:01 +01:00
parent 9f328700cb
commit 6c8191f7c5
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
* @typedef {object} Phaser.Types.Loader.FileTypes.AudioFileConfig
*
* @property {string} key - The key of the file. Must be unique within the Loader and Audio Cache.
* @property {string} [urlConfig] - The absolute or relative URL to load the file from.
* @property {(string|string[])} [url] - The absolute or relative URLs to load the audio files from.
* @property {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.
* @property {AudioContext} [audioContext] - The AudioContext this file will use to process itself.
* @property {AudioContext} [context] - The optional AudioContext this file will use to process itself.
*/

View file

@ -2,7 +2,7 @@
* @typedef {object} Phaser.Types.Loader.FileTypes.VideoFileConfig
*
* @property {(string|Phaser.Types.Loader.FileTypes.VideoFileConfig)} key - The key to use for this file, or a file configuration object.
* @property {any} [urlConfig] - The absolute or relative URL to load this file from in a config object.
* @property {(string|string[])} [url] - The absolute or relative URLs to load the video files from.
* @property {string} [loadEvent] - The load event to listen for when _not_ loading as a blob. Either 'loadeddata', 'canplay' or 'canplaythrough'.
* @property {boolean} [asBlob] - Load the video as a data blob, or via the Video element?
* @property {boolean} [noAudio] - Does the video have an audio track? If not you can enable auto-playing on it.