Skip to content

Commit

Permalink
fix: Fix progress events for VOD when using vodDynamicPlaybackRate (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and joeyparrish committed May 31, 2024
1 parent c047751 commit c5308b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,8 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
this.manifest_.serviceDescription)) {
const onTimeUpdate = () => this.onTimeUpdate_();
this.loadEventManager_.listen(mediaElement, 'timeupdate', onTimeUpdate);
} else if (!isLive) {
}
if (!isLive) {
const onVideoProgress = () => this.onVideoProgress_();
this.loadEventManager_.listen(
mediaElement, 'timeupdate', onVideoProgress);
Expand Down Expand Up @@ -2444,7 +2445,8 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
if (isLive && this.config_.streaming.liveSync) {
const onTimeUpdate = () => this.onTimeUpdate_();
this.loadEventManager_.listen(mediaElement, 'timeupdate', onTimeUpdate);
} else if (!isLive) {
}
if (!isLive) {
const onVideoProgress = () => this.onVideoProgress_();
this.loadEventManager_.listen(
mediaElement, 'timeupdate', onVideoProgress);
Expand Down

0 comments on commit c5308b7

Please sign in to comment.