-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS videos dont play if there are many in one page #1674
Comments
Running into the same issue. It even happens in Chrome dev tools and switching the responsive preset to an iPhone. Switching it to a Pixel works fine. Enabling one of |
@buikhacnam Kind of? I don't remember the reason why I switched but I switched to another video player package, which had the same issue where audio would play but not the video. I had to update to I suspect that this should also work on |
@buikhacnam Just set playsinline={true}. Working for me. Hope it‘s helpful for you. |
Current Behavior
When a page has many instances of ReactPlayer, no video will ever play in iOS Safari. This doesnt happen on desktop, or even on Safari desktop. This also doesnt happen when its just a few videos or a single video on a page. I have ruled out the video files themselves (since they work in all other devices, and work in iOS when only a few). There are two different ways it errors. It either refuses to start the video even though it correctly loads the first frame as the thumbnail, and enters fullscreen mode as though its going to start playing, OR it stops trying ti play and shows a play button with a prohibited symbol over it with no thumbnail at all.
Expected Behavior
Videos should play.
iOS 16.1 / iPhone 14 Pro (happens to others too). Website is using NextJS and StrapiJS as the CMS, using nginx
Bonus info
I have tried using the default player, the "file" player, the "lazy" player, and have tried with and without "preload: "metadata""
Here it the component I am using as the player
The text was updated successfully, but these errors were encountered: