var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('video', {
events: {
'onReady': onPlayerReady
}
});
}
function onPlayerReady(event) {
player.playVideo();
}
<script src="//www.youtube.com/player_api"></script>
<iframe id="video" src="//www.youtube.com/embed/TTQK9aWZVds?enablejsapi=1"></iframe>
The above code is to run the video on mobile browser, but it is not playing!
it's working in web browser