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
{{ message }}
Repository navigation
Video not preloading in iOS with preload="auto", it blinks the poster #963
Which Mux Elements/Packages does this apply to? Select all that apply
mux-player-react
Which browsers are you using?
Safari on iOS
Which operating systems are you using?
iOS
Description
I'm using the mux-react-player to stream mux assets, we're using preload=auto to start loading the video asap no matter the case as the docs orientation, so the behavior when we click to play is smoother. We can see the assets being downloaded on all devices including the chunks, and we see the poster, as we click the poster is gone and the video starts playing.
But it seems this is not working for iOS Safari, in there even with preload="auto" the chunks are never downloaded (I was able to see it on the iOS simulator), we can see the poster but not the video in the behind, the poster blinks, we see a loader and then the download of chunks starts after we click play with an abrupt transition from poster to play, this is happening only on iOS devices and it's creating a broken experience as in some cases the chunk takes time to download and start, especially if the poster is not the first frame of the video this is more noticeable.
changed the title [-]Bug: Video not preloading in iOS with preload="auto", it blinks the poster[/-][+]Video not preloading in iOS with preload="auto", it blinks the poster[/+]on Nov 6, 2024
@lucasgdev thanks for the feedback! alas, this is not something we can change on our end.
iOS Safari controls this behavior to keep users from using too much internet or memory.
The behavior can also change based on if the phone is in energy saving mode or if the internet is via cellular.
there is possibly a workaround for iOS >=17 if you add the prefer-playback="mse" attribute.
This should enable the new Managed Media Source extensions which gives the player more control over the loading logic.
Activity
[-]Bug: Video not preloading in iOS with preload="auto", it blinks the poster[/-][+]Video not preloading in iOS with preload="auto", it blinks the poster[/+]luwes commentedon Nov 6, 2024
@lucasgdev thanks for the feedback! alas, this is not something we can change on our end.
iOS Safari controls this behavior to keep users from using too much internet or memory.
The behavior can also change based on if the phone is in energy saving mode or if the internet is via cellular.
there is possibly a workaround for iOS >=17 if you add the
prefer-playback="mse"attribute.This should enable the new Managed Media Source extensions which gives the player more control over the loading logic.