mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Added new unsupported event
This commit is contained in:
parent
f2426b9ec7
commit
bff9184329
3 changed files with 26 additions and 2 deletions
|
@ -16,6 +16,6 @@
|
|||
* @since 3.20.0
|
||||
*
|
||||
* @param {Phaser.GameObjects.Video} video - The Video Game Object which threw the error.
|
||||
* @param {Event} event - The native DOM event the browser raised during playback.
|
||||
* @param {DOMException|string} event - The native DOM event the browser raised during playback.
|
||||
*/
|
||||
module.exports = 'error';
|
||||
|
|
23
src/gameobjects/events/VIDEO_UNSUPPORTED_EVENT.js
Normal file
23
src/gameobjects/events/VIDEO_UNSUPPORTED_EVENT.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* @author Richard Davey <rich@photonstorm.com>
|
||||
* @copyright 2013-2023 Photon Storm Ltd.
|
||||
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
||||
*/
|
||||
|
||||
/**
|
||||
* The Video Game Object Unsupported Event.
|
||||
*
|
||||
* This event is dispatched by a Video Game Object if the media source
|
||||
* (which may be specified as a MediaStream, MediaSource, Blob, or File,
|
||||
* for example) doesn't represent a supported media format.
|
||||
*
|
||||
* Listen for it from a Video Game Object instance using `Video.on('unsupported', listener)`.
|
||||
*
|
||||
* @event Phaser.GameObjects.Events#VIDEO_UNSUPPORTED
|
||||
* @type {string}
|
||||
* @since 3.60.0
|
||||
*
|
||||
* @param {Phaser.GameObjects.Video} video - The Video Game Object which started playback.
|
||||
* @param {DOMException|string} event - The native DOM event the browser raised during playback.
|
||||
*/
|
||||
module.exports = 'unsupported';
|
|
@ -25,6 +25,7 @@ module.exports = {
|
|||
VIDEO_STALLED: require('./VIDEO_STALLED_EVENT'),
|
||||
VIDEO_STOP: require('./VIDEO_STOP_EVENT'),
|
||||
VIDEO_TIMEOUT: require('./VIDEO_TIMEOUT_EVENT'),
|
||||
VIDEO_UNLOCKED: require('./VIDEO_UNLOCKED_EVENT')
|
||||
VIDEO_UNLOCKED: require('./VIDEO_UNLOCKED_EVENT'),
|
||||
VIDEO_UNSUPPORTED: require('./VIDEO_UNSUPPORTED_EVENT')
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue