Just a quick question for you all.
I've encountered an issue with the Youtube player on my HTML website when trying to play videos on IOS devices. It seems that tapping on the red "play" button does not start the video, but tapping on the preview image does! Quite a strange occurrence.
If you want to test it out yourself, you can visit this link: https://developers.google.com/youtube/youtube_player_demo
Here's the code snippet I'm currently using:
var _player = new YT.Player('player', {
height: '100%',
width: '100%',
videoId: id,
playerVars: {
controls:1,
showinfo:0,
modestbranding: 1
},
events: {
'onReady': _onPlayerReady,
'onStateChange': _onPlayerStateChange
}
});
Has anyone else experienced this bug before? And is there a way to fix it? Appreciate any help or suggestions. Thanks!