Youtube Player

AS3 Youtube player 0.2

Monday, February 2nd, 2009 | Actionscript 3, Youtube Player | 7 Comments

Get Adobe Flash player

I’ve had a little time to iterate upon my previous demo using Youtube player in AS3.  It’s still not as clean as i’d like, and i haven’t done the Documentation yet, but it’s pretty solid and provides a good example of the methodology invloved.

I’ve only added Play/Pause btn, a clickable Progress bar, and mute button. The AS3 player loads in a AS2 flash movie which wraps the Youtube player and provides an actionable API. The AS@ communicates back to the AS3 player via a call to a pre named function passing all the current properties of the Youtube Player, currentTime, duration, state etc.

Once i get some more time, and i’ve tested it in a couple of applications i’ll finish it off and provide Documentation.

Click to download free source code

Tags: ,

Using the youtube player as a radio station

Sunday, November 16th, 2008 | Actionscript 2, Youtube Player | 3 Comments

In the previous post i created an example of loading the Youtube player into your application, as2 or as3. To do this i had created a wrapper class component to make it simple to just drag and drop the component into your as2 application. With this you can start using Youtube videos, and controlling playback. Simple really.

This is an example of what you can do with that sort of functionality simply and more importantly, very quickly. At its core, it’s an instance of the youtube wrapper component, a list component, some code to let users add in new youtube songs, and retrive all the songs from the database. And all i’ve done is hide the video player.

Be aware though that a video must be enabled to share on youtube before you can use it. So Official videos from bands usually aren’t enabled for sharing, and as such you’ll need to find one added by a fan instead.

Tags: , ,

Search