Autoplay video on iOS 10 is here!

Hey all,

This is big news for all of us and this article is a great read and funny too.

WebKit’s New policies for video
Starting in iOS 10, WebKit relaxes its inline and autoplay policies to make these presentations possible, but still keeps in mind sites’ bandwidth and users’ batteries.

It would be great to know if Webflow can support this now and how we could implement it. Or do we need to wait for an update.

Rupen.

WHOA. Has anyone tried this yet for their background video elements?

Hi @PixelGeek.

How can we do this?
Apologies if it is obvious.

Rupen.

Try following this article:

Report back with your findings please :slight_smile:

Hey @PixelGeek,
iOS 10 has been out for a while now, but background videos in Webflow still don’t autoplay?
Thanks

What you’re looking for is playsinline which can be added to any video element. This works beautifully on inline videos on iOS 10.

The Webflow team might want to add playsinline to their default background video element, considering users would have to manually inject using JS as a workaround until then. :+1:

<video 
  autoplay="autoplay"
  playsinline
  loop="loop"
  style="width:100%"
  "background-image: url(POSTER-URL)">
  <source src="WEBM-URL">
  <source src="MP4URL">
</video>

To demonstrate, open this link from an iOS 10 device to see the video element autoplay:
http://playsinline.webflow.io

Here’s the Webflow project:
https://preview.webflow.com/preview/playsinline?preview=d7203661bd3a954f957f464a6b46c623

Note: playsinline will not work if your video has an audio track. If you’re unable to remove the audio track from a video, you can add muted to the video element.

 <video 
   autoplay="autoplay"
   playsinline
   muted
   loop="loop"
   etc...

@Simon_Lessing @McGuire I’ll inform the team and see what they say. thanks for the heads up

2 Likes

This would be brill!
Could mean no more converting videos to gifs for iOS 10 at least.

Cool!
As I sidenote, I just realized that embedding the html code actually plays
the video directly in the designer view and works great when publishing as
well, so problem solved for me at least!
Also works with 3D transformations etc so quite nice!