Autoplay inline embedded videos for iOS


I’m trying to embed Twitch videos in both a webview and native iPhone app. I can embed the video player successfully, but the video does not autoplay as expected. I have to manually press play which expands the video into the iPhone’s fullscreen view. Exiting the fullscreen view allows the video to play inline (I’ve enabled the playsinline option).

Based on this WebKit blog post, iOS now supports autoplay for inline videos if the <video> element has the “muted” attribute:

It looks like Twitch’s video player does not add this attribute for muted videos which prevents the video from automatically playing inline. Would it be possible to add support for the “muted” attribute as was previously done for “playsinline”?


1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.