Jakobox Posted January 9, 2018 Share Posted January 9, 2018 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! Link to comment Share on other sites More sharing options...
Don E Posted January 11, 2018 Share Posted January 11, 2018 I believe this was a change with iOS. I've noticed this for awhile now. (years) Link to comment Share on other sites More sharing options...
Don E Posted January 12, 2018 Share Posted January 12, 2018 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 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. Link to comment Share on other sites More sharing options...
Jakobox Posted January 16, 2018 Author Share Posted January 16, 2018 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. Link to comment Share on other sites More sharing options...
Don E Posted January 16, 2018 Share Posted January 16, 2018 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. 👍🏼 Link to comment Share on other sites More sharing options...
Jakobox Posted January 19, 2018 Author Share Posted January 19, 2018 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now