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

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

@brianchirls

Description

@brianchirls

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`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions