I am struggling with setting up the loop for youtube videos using youtube player api.
The problem is that the video is not running under a loop.
Here is my c
Try this in your onPlayerStateChange, in some sort of way Youtube wants you to put in the videoID again.
onStateChange: function(e){ var id = 'qzZuBWMnS08'; if(e.data === YT.PlayerState.ENDED){ player.loadVideoById(id); } }