From ec17fd4a47f55cf3811d879ff547cd77c9e2bcf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=81lvaro=20Velad=20Galva=CC=81n?= Date: Mon, 13 Jan 2025 10:18:32 +0100 Subject: [PATCH] fix(UI): Fix handle of seek on MediaSession --- ui/controls.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ui/controls.js b/ui/controls.js index 821fa6bf56..5a58302ab0 100644 --- a/ui/controls.js +++ b/ui/controls.js @@ -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_(); } /**