diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-07-17 13:55:01 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-07-17 13:55:01 +0000 |
commit | 37ab5213a368926506206cb21a438cb7fea3d530 (patch) | |
tree | 5c708b958784095a8a663b83688da0eaf2f95cf7 /priv/static/room.js | |
parent | 06f7696c0976c75c13435f84a2101c1203c18b95 (diff) | |
download | mediasync-37ab5213a368926506206cb21a438cb7fea3d530.tar mediasync-37ab5213a368926506206cb21a438cb7fea3d530.tar.gz mediasync-37ab5213a368926506206cb21a438cb7fea3d530.zip |
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.
Diffstat (limited to 'priv/static/room.js')
-rw-r--r-- | priv/static/room.js | 2 |
1 files changed, 2 insertions, 0 deletions
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( |