Hi there guys does anyone have experience using Youtube’s Chromeless player. I have set it up as follows:
var params = { allowScriptAccess: "always" };
var atts = { id: "myytplayer" };
swfobject.embedSWF("http://www.youtube.com/apiplayer?key=AI39si5cxKBjboPA9SA2pkrpW7Qaub6XGE0-iqcwlfs5bvjNQyt36EFT3qvP73oqVcKD5GHZEHc6IZwX7X6T1Rxrciz98laKhA&enablejsapi=1&version=3&playerapiid=ytplayer" ,
"ytapiplayer", "412", "246", "8", null, null, params, atts);
Is my use of the developer key here correct? The API doc is vague at best when discussing this:
Developer’s Guide: Data API Protocol - YouTube APIs and Tools - Google Code
Anyway I continue to get a handle on the player:
function onYouTubePlayerReady(playerId) {
ytplayer = document.getElementById("myytplayer");
play();
}
I then call the following function to load in my first url and play the video.
This is done because I want two sets of controls - one on a list which the user has called to embed the player in the first place and another to be my custom chrome:
function play() {
if(ytplayer)
{
ytplayer.loadVideoByUrl( "http://www.youtube.com/watch?v=GPdYRBf1fGc&feature=player_detailpage", 0);
ytplayer.playVideo();
}
}
Here is the test site :
Jake Guy - Content Management System
click the 4th accordion entry - this is defintely youtube, the plugin I am designing interchanges flowplayer with youtube.