mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-17 21:49:17 +00:00
support playlist function
This commit is contained in:
@@ -111,6 +111,9 @@ function control_embed_iframe(message) {
|
||||
case 'seek':
|
||||
const duration = player.duration();
|
||||
let newTime = helpers.clamp(message.data.value, 0, duration);
|
||||
if (player.paused() && player.currentTime() === 0) {
|
||||
player.play();
|
||||
}
|
||||
player.currentTime(newTime);
|
||||
break;
|
||||
case 'setplaybackrate':
|
||||
|
||||
Reference in New Issue
Block a user