Skip to content

Commit 6c8191f

Browse files
committed
Fixed Audio and Video type defs. Fix phaserjs#5295
1 parent 9f32870 commit 6c8191f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/loader/filetypes/typedefs/AudioFileConfig.js

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

src/loader/filetypes/typedefs/VideoFileConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @typedef {object} Phaser.Types.Loader.FileTypes.VideoFileConfig
33
*
44
* @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.
5+
* @property {(string|string[])} [url] - The absolute or relative URLs to load the video files from.
66
* @property {string} [loadEvent] - The load event to listen for when _not_ loading as a blob. Either 'loadeddata', 'canplay' or 'canplaythrough'.
77
* @property {boolean} [asBlob] - Load the video as a data blob, or via the Video element?
88
* @property {boolean} [noAudio] - Does the video have an audio track? If not you can enable auto-playing on it.

0 commit comments

Comments
 (0)