player.js icon indicating copy to clipboard operation
player.js copied to clipboard

Video don't resume when focus tab again in iPhone

Open elrumordelaluz opened this issue 2 years ago • 4 comments

Expected Behavior

When set as loop: true, autoplay: true and autopause: false, we expect the video continue when leave the tab or at least resume when the tab is focused again.

Actual Behavior

The play event is fired but the player still paused.

Steps to Reproduce

  1. Goto https://player.vimeo.com/api/demo
  2. Uncheck the autopause flag
  3. Check the loop one
  4. Set Mute

Then play the video, change tab for a second and get back to the tab with the Player

Here is a screencast:

https://user-images.githubusercontent.com/784056/167831579-7da7d655-7207-4bb0-8254-fc3da098e972.mp4

Looking the logs, seems that for some reason the video is paused when switching tab (and it is ok for me), an seems that the event play is fired, but the video it isn't.

elrumordelaluz avatar May 11 '22 10:05 elrumordelaluz

Thanks for filing this issue. Do you only observe this issue on iOS or have you been able to reproduce on other platforms?

rkrishnan8594 avatar May 11 '22 13:05 rkrishnan8594

have you been able to reproduce on other platforms?

I am able to reproduce only on this phone right now.

In desktop seems to work as expected, since don't pause when switching tab and continues playing.

elrumordelaluz avatar May 11 '22 13:05 elrumordelaluz