Watch youtube player api. Request chromeless. Shows why the red play button?

var ytplayer;
var params = { allowScriptAccess: "always" };
var atts = { id: "myytplayer" };
swfobject.embedSWF(
"http://www.youtube.com/apiplayer?enablejsapi=1&version=3", 
"ytapiplayer", "600", "375", "8", null, null, params, atts);

function onYouTubePlayerReady(playerId) {
 ytplayer = document.getElementById("myytplayer");
ytplayer.loadVideoById('XXXXXXXXXXX');
ytplayer.stopVideo();
}

Button is displayed only in the -1 state (stop).
September 26th 19 at 12:00
0 answer

Find more questions by tags YouTube