Loop option doesn't work in the youtube js api
问题 I'm wondering why my code doesn't play the loop for the video. Everything is working except the loop option. And I really need it. Thanks a lot. <script src="jsapi.js"></script> <script src="swfobject.js"></script> <div id="ytapiplayer">You need Flash player 8+ and JavaScript enabled to view this video.</div> <script type="text/javascript"> google.load("swfobject", "2.1"); function onYouTubePlayerReady(playerId) { ytplayer = document.getElementById("myytplayer"); ytplayer.playVideo();