Skip to content

Commit

Permalink
PlaybackController: fix concurrent internal seeks (#3903)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbert committed Apr 11, 2022
1 parent a289e40 commit 4812677
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/streaming/controllers/PlaybackController.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ function PlaybackController() {

function _onPlaybackPlaying() {
logger.info('Native video element event: playing');
internalSeek = false;
eventBus.trigger(Events.PLAYBACK_PLAYING, { playingTime: getTime() });
}

Expand All @@ -548,7 +549,6 @@ function PlaybackController() {
function _onPlaybackSeeking() {
// Check if internal seeking to be ignored
if (internalSeek) {
internalSeek = false;
return;
}

Expand All @@ -570,6 +570,7 @@ function PlaybackController() {

function _onPlaybackSeeked() {
logger.info('Native video element event: seeked');
internalSeek = false;
eventBus.trigger(Events.PLAYBACK_SEEKED);
}

Expand Down

0 comments on commit 4812677

Please sign in to comment.