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: https://webkit.org/blog/6784/new-video-policies-for-ios/
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”?