You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue, and for submitting a PR to fix it. We have merged your PR into the master branch and attributed the work to you in the Change Log. If you need to tweak the code for whatever reason please submit a new PR.
Version
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.
The text was updated successfully, but these errors were encountered: