sampotts / plyr

A simple HTML5, YouTube and Vimeo player
https://plyr.io
MIT License
26.38k stars 2.92k forks source link

Video sometimes doesn't play on iOS < 11 #1088

Open Mp4ct opened 6 years ago

Mp4ct commented 6 years ago

Actual behaviour

Video doesn't play. After clicking the play button, the progressbar shows the buffering animation, the poster image disappears but the video never starts.

Environment

Steps to reproduce

I can reproduce this also with the example on https://plyr.io. Not every time but at least one out of 10 times. If the video plays, just hit reload and try again and eventually it won't play.

friday commented 6 years ago

Thanks for the report. I can't replicate it since I don't have any working i-device or means of simulating it, and Sam is super busy with family, work and the accessibility issue.

So any help is welcome.

hassanelsherbiny commented 6 years ago

Thanks for the report. I can't replicate it since I don't have any working i-device or means of simulating it, and Sam is super busy with family, work and the accessibility issue.

So any help is welcome.

you can reproduce the issue with google chrome extension called spoofer it change the user agent to whatever device you want "there is ios too"
https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg

friday commented 6 years ago

That's a not a good suggestion. Any UA specific code should only run on the browsers they were intended for. If you make your browser violate this by UA spoofing you should expect it to break. "Fixing" this will just break things even more on the real browser.

gouravsharma029 commented 3 years ago

We are seeing the same issue on Safari browser while trying to render a video using cloudfront url here are the details:

Plyr: 3.5.10 Browser: Safari Operating System: mac OS Catalina Version: 10.15.7 (19H512)

When we press play button we see the progressbar shows the buffering animation and on forward or restart the video starts playing.

Any help here.