Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Pause playback/record when document is hidden (and not presenting) #18

Open
4 tasks
brianchirls opened this issue Mar 8, 2017 · 0 comments
Open
4 tasks

Comments

@brianchirls
Copy link
Member

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`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant