Following on from my recent post ‘Youtube chromeless player example‘ I’ve finally found the time to get this example source put up available for download.
So here’s the brief.
The raw code for the Youtube API can be found here. The API is available in both AS2 and AS3. This is a basics you need to get started creating your own chromeless player example in AS3. You can download an sample AS2 version fla from here. You can of course skip this and go ahead and download my moded AS3 version of the chromeless player and hack it to fit your own needs. In my example I’ve set it up so that you can set set the video id in flash embed params and on url like here: www.scotflash.co.uk/youtube/?id=8hn15ugMJ4k. If no id is found then flash will load a default video id already set inside the swf.
The source is fully commented and includes both the fla file and html embed page to get you on your way.