Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression due to internal seek #2678

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/streaming/controllers/BufferController.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function BufferController(config) {
eventBus.on(Events.PLAYBACK_TIME_UPDATED, onPlaybackProgression, this);
eventBus.on(Events.PLAYBACK_RATE_CHANGED, onPlaybackRateChanged, this);
eventBus.on(Events.PLAYBACK_SEEKING, onPlaybackSeeking, this);
eventBus.on(Events.PLAYBACK_SEEKED, onPlaybackSeeked, this);
eventBus.on(Events.PLAYBACK_STALLED, onPlaybackStalled, this);
eventBus.on(Events.WALLCLOCK_TIME_UPDATED, onWallclockTimeUpdated, this);
eventBus.on(Events.CURRENT_TRACK_CHANGED, onCurrentTrackChanged, this, EventBus.EVENT_PRIORITY_HIGH);
Expand Down Expand Up @@ -334,6 +335,9 @@ function BufferController(config) {
} else {
onPlaybackProgression();
}
}

function onPlaybackSeeked() {
seekStartTime = undefined;
}

Expand Down Expand Up @@ -884,6 +888,7 @@ function BufferController(config) {
eventBus.off(Events.PLAYBACK_TIME_UPDATED, onPlaybackProgression, this);
eventBus.off(Events.PLAYBACK_RATE_CHANGED, onPlaybackRateChanged, this);
eventBus.off(Events.PLAYBACK_SEEKING, onPlaybackSeeking, this);
eventBus.off(Events.PLAYBACK_SEEKED, onPlaybackSeeked, this);
eventBus.off(Events.PLAYBACK_STALLED, onPlaybackStalled, this);
eventBus.off(Events.WALLCLOCK_TIME_UPDATED, onWallclockTimeUpdated, this);
eventBus.off(Events.SOURCEBUFFER_REMOVE_COMPLETED, onRemoved, this);
Expand Down