mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-24 22:22:50 -05:00
Prevent sites from re-muting video
This commit is contained in:
@@ -168,6 +168,10 @@ const viewStateMachine = Machine(
|
||||
video.autoPlay = true
|
||||
video.play()
|
||||
setInterval(() => video.play(), 1000)
|
||||
|
||||
// Prevent sites from re-muting the video (Periscope, I'm looking at you!)
|
||||
Object.defineProperty(video, 'muted', {writable: false, value: false})
|
||||
|
||||
const info = { title: document.title }
|
||||
return info
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user