Skip to content

Commit

Permalink
fix(UI): Fix handle of seek on MediaSession
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jan 13, 2025
1 parent 2fa0414 commit ec17fd4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ui/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1815,12 +1815,8 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
goog.asserts.assert(
this.seekBar_, 'Caller of seek_ must check for seekBar_ first!');

this.seekBar_.changeTo(currentTime);

if (this.isOpaque()) {
// Only update the time and seek range if it's visible.
this.updateTimeAndSeekRange_();
}
this.video_.currentTime = currentTime;
this.updateTimeAndSeekRange_();
}

/**
Expand Down

0 comments on commit ec17fd4

Please sign in to comment.