Reset _codePaused to false in play handlers to allow video to resume

This commit is contained in:
VektreX 2021-05-18 01:32:45 +02:00
parent 699e81e008
commit b63bb53430

View file

@ -929,6 +929,7 @@ var Video = new Class({
*/ */
playPromiseSuccessHandler: function () playPromiseSuccessHandler: function ()
{ {
this._codePaused = false;
this.touchLocked = false; this.touchLocked = false;
this.emit(Events.VIDEO_PLAY, this); this.emit(Events.VIDEO_PLAY, this);
@ -970,6 +971,7 @@ var Video = new Class({
*/ */
playHandler: function () playHandler: function ()
{ {
this._codePaused = false;
this.touchLocked = false; this.touchLocked = false;
this.emit(Events.VIDEO_PLAY, this); this.emit(Events.VIDEO_PLAY, this);