Add shortcut m to mute audio

This commit is contained in:
2025-02-03 15:38:07 +01:00
parent f9b330d4d1
commit 99ad9ab2d5
9 changed files with 35 additions and 35 deletions

View File

@@ -50,6 +50,13 @@ export const toggle_playback = () => {
}
return false
}
export const toggle_mute = () => {
if (viewer && viewer.toggle_mute) {
viewer.toggle_mute()
return true
}
return false
}
export const seek = delta => {
if (viewer && viewer.seek) {
viewer.seek(delta)