From 37ab5213a368926506206cb21a438cb7fea3d530 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Wed, 17 Jul 2024 19:25:01 +0530 Subject: Disable seekbar unless we're the host This is just because it's inelegant to be able to seek and then be immediately reset. There are things it doesn't cover, like picture-in-picture, but that's fine. --- priv/static/room.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/priv/static/room.js b/priv/static/room.js index 85ef9d3..81ecf71 100644 --- a/priv/static/room.js +++ b/priv/static/room.js @@ -25,6 +25,7 @@ playsinline: true, preload: "auto", }); + player.controlBar.progressControl.disable(); const updatePlaybackState = (latestReceivedState, nowMilliseconds) => { if (nowMilliseconds - latestReceivedState.receivedAtMilliseconds > 2000) { @@ -100,6 +101,7 @@ const CHECK_STATE_INTERVAL_MILLISECONDS = 20; if (host) { + player.controlBar.progressControl.enable(); intervalId = setInterval(() => { websocket.send( prepareStateUpdateMessage( -- cgit v1.2.3-57-g22cb