Toggle audio/video playback with spacebar

This commit is contained in:
2024-04-11 20:32:55 +02:00
parent 5f6cc3f90f
commit a0ccbb55be
13 changed files with 67 additions and 28 deletions

View File

@@ -39,6 +39,12 @@ const state_update = async (base) => {
viewer.update()
}
}
export const toggle_playback = () => {
if (viewer && viewer.toggle_playback) {
viewer.toggle_playback()
}
}
</script>
{#if viewer_type === ""}