Reputation: 92
I am currently working on a page with videos on it. Since iOS 11.2, it seems they disabled autoplay muted inlineplaying completely without a user gesture.
Has anyone experienced this issue too?
This all wouldn't be such a mess if there would be a possibilty to check whether it is possible to playinline or not. But like this it results in a new hack by UA sniffing.
Edit: I have seen that I missed something. Autoplay is working, but trying to video.play()
a muted inline video is not working anymore.
Upvotes: 5
Views: 9636
Reputation: 9385
Found a working solution thanks to the WebRTC repo (works in iOS 11.2.5
):
Set the video's playsinline
attribute to true
.
References:
Upvotes: 13