This will prevent weirdness when the `requestAnimationFrame` is not running because the window/tab is in the background. - [ ] Do not allow playback or pause when `document.hidden` - [ ] Pause playback on `"visibilitychange" if `document.hidden` - [ ] Stop recording on `"visibilitychange" if `document.hidden` - [ ] Resume playback on `"visibilitychange" if `!document.hidden`
This will prevent weirdness when the
requestAnimationFrameis not running because the window/tab is in the background.document.hidden"visibilitychange" ifdocument.hidden`"visibilitychange" ifdocument.hidden`"visibilitychange" if!document.hidden`