mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-03 20:32:08 -04:00
Prevent sites from re-muting video
This commit is contained in:
@@ -168,6 +168,10 @@ const viewStateMachine = Machine(
|
|||||||
video.autoPlay = true
|
video.autoPlay = true
|
||||||
video.play()
|
video.play()
|
||||||
setInterval(() => video.play(), 1000)
|
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 }
|
const info = { title: document.title }
|
||||||
return info
|
return info
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user