Prevent sites from re-muting video

This commit is contained in:
Max Goodhart
2020-06-20 18:46:27 -07:00
parent cb3aab4a30
commit 767d85858d

View File

@@ -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
}