Reputation: 10065
I embedded a youtube video in a html page. I use the youtube iframe API with Flash (in my case, I cannot use an HTML5 video). Since the last Google Chrome update, Chrome block the autoplay and avoid to play/pause programmatically a video ( element.playVideo() not respond). (Everything is ok on others browsers)
The only way I found is to:
This solution is TO COMPLICATED for users, does someone have a solution without any user interactions?
Upvotes: 8
Views: 3504
Reputation: 239
Two possible Solutions to avoid autoplay blocking in Chrome:
Load flash swf file from same domain name. You could consider proxying if it's your own infrastructure, but I think it's not possible for Youtube api.
Load the player with a bigger size (Try different resolutions). This might sound naive, but Chrome considers bigger video players as content and doesn't block auto playback.
Upvotes: 4
Reputation: 61
As far as I know and think, this issue is related with embedded Flash Content from other domains
What I think
I think that the only solution for this will be HTML5 Video, until then maybe someone will come with an "workaround"
Upvotes: 1