Skip to content

Commit 9656c98

Browse files
committed
Emit event after playback
1 parent 29f5aca commit 9656c98

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/gameobjects/video/Video.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@ var Video = new Class({
912912
*
913913
* @method Phaser.GameObjects.Video#unlockHandler
914914
* @fires Phaser.GameObjects.Events#VIDEO_UNLOCKED
915+
* @fires Phaser.GameObjects.Events#VIDEO_PLAY
915916
* @private
916917
* @since 3.20.0
917918
*
@@ -930,6 +931,8 @@ var Video = new Class({
930931
}
931932

932933
this.video.play();
934+
935+
this.emit(Events.VIDEO_PLAY, this);
933936
},
934937

935938
/**

0 commit comments

Comments
 (0)