Skip to content

Video doesn't resume playing after regaining focus #5377

@spayton

Description

@spayton

Version

  • Phaser Version: from 3.20 -> current dev
  • Operating system: win10 x64
  • Browser: Desktop chrome 86

Description

A playing video pauses when swapping to another browser tab but doesn't resume when swapping back

Example Test Code

To reproduce, simply visit the labs video example, then switch to another tab on same browser, then back. the video will have stopped playing.

Additional Information

It is noticed that on regaining focus, an attempt is made to resume video playback in globalResume() but is prevented from doing so because _codePaused is set. The _codePaused property is set true on creation and never cleared, I'd guess that it should be cleared on playback.

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