Jump to content
Sign in to follow this  
Jakobox

iphone videos no longer autoplay?

Recommended Posts

Hi guys!

Newbie question:

Awhile back it seemed that there was an update to iOS that made it so if a Video had the following attributes

autoplay loop muted playsinline

it would autoplay inline on iPhone/iOS when fully in the viewport.

That was great! Allowed me to use video files instead of GIFs, which has a ton of advantages.

However, I recently noticed that all the videos I have set up like this now show a play button over them in iOS, and require the user to click them to begin playback.

Was this just a change in iOS? I notice that both iOS Chrome and Safari have the same behavious. Or is something weird with my code? Is there a workaround to get autoplay on mobile back?

Here's an example of what I'm talking about

https://www.jacobpritchard.com/video-sample 

Thank you!

Share this post


Link to post
Share on other sites

I believe this was a change with iOS. I've noticed this for awhile now. (years) 

Share this post


Link to post
Share on other sites

What you can do to give you the result you're looking for is converting your videos to gifs. Gifs automatically play on iOS devices. 

Here is one of your videos converted to a gif using video gif maker at https://editthis.net/videogif

0glp6G4FW2.gif

 

The downside to this though is depending on the length(duration) and size(width and height) of gif, the file size can be big resulting in the gifs taking some time to load on the webpage. 

Share this post


Link to post
Share on other sites

Thanks for that Don.

You got it exactly right... I'm trying to find a solution that doesn't have the inherent downside of a GIF in terms of poor rendering vs massive files for longer images.

In this particular example, the GIF actually looks pretty good, but I have other files that are longer, higher framerate etc.

Ideally I would love to have more control over this, but to be honest, the implementation (with the play button required for the video to start) is not awful.

 

Share this post


Link to post
Share on other sites
1 hour ago, Jakobox said:

Ideally I would love to have more control over this, but to be honest, the implementation (with the play button required for the video to start) is not awful.

I agree. It's not too awful. Good luck with everything. 👍🏼

Share this post


Link to post
Share on other sites

Just looping back on this for the benefit of anyone else who might come across this thread.

I realized that the item that is preventing autoplay on iphone is when the phone is in "low power mode"... Kind of a smart move on behalf of the iPhone really. On a phone not in low power mode, videos should autoplay as expected.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×