AS3/Flex and the new YouTube API

In the beginning of March YouTube made a new release of there WebService API:

“We now provide a complete set of (CRUD) capabilities for uploading, managing, searching, and playing back user videos and metadata from the YouTube “cloud,” managed by us. We do all of the hard work of transcoding and hosting and streaming and thumbnailing your videos, and we provide open access to our sizable global audience, enabling you to generate traffic for your site, visibility for your brand, or support for your cause. Meanwhile, we provide full access to our substantial video library, enabling you to attract users and enhance the experience on your site. It’s all free, and it’s available to everyone, starting now. “

I think this a great move by Google and I want to try it out using Flex and AS3.

There is already a YouTube AS3 library (formlery hosted on Adobe Labs) which does not cover the latest features like uploading videos.

Searching for AS3 sample code I had a look at the YouTube API dev page.

The Contributed sample code wiki showed up the ActionScript 3 Wrapper and the AS3 Wrapper.

The first one has a Flash CS3 tutorial and uses the JSON stuff of the Open Source AS3 library corelib. But then I realized that the new features like uploading videos where not covered yet. Then I came to the blog of the author Martin Legris who blogged that he had problems using the new API.

The AS3 Wrapper is a message thread and cares about AS3-AS2 communication and also only about playback if I checked it right so also not the thing I was looking for.
So it looks like there is no open AS3 solution for the new YouTube features yet. Please leave a comment if you know anything else. I hope my next post on this will show a solution. However I hope this post may provide some good links for others who want to start playing with the YouTube API and AS3/Flex.
Another interesting link to follow up is SWFAdress and the YouTube API to allow deeplinking (e.g. start at second 10 instead of the beginning) into videos.

James Ward made a very nice example how to use Dough McCune’s cover flow component with videos hosted on YouTube.

I came across another “white label YouTube“. The startup Reality Digital just got another round funding and their services look very interesting. They use Adobe Premiere Express as online video editing solution like e.g. also the MTV Video Remixer and Photobucket.

Via TechCrunch I explored Magnify. They created VidyUp which uses the new YouTube API and are claimed the first who use the new YouTube API.

So again: If you see something in AS3 open source around the new API please drop a comment!

9 comments to AS3/Flex and the new YouTube API

  • mike chambers

    I have been playing around with the API, and should have AS# classes for:

    -getting playlists
    -updating items in a playlist
    -authenticating against the api

    in the next day or two. It is not the complete API, but is a start.

    Ill post everything online (open source) in the next day or two.

    mike chambers

    mesh@adobe.com

  • This is great Mike!
    I will check your blog.
    However I am especially interested in uploading 😉

  • mike chambers

    >However I am especially interested in uploading

    Yeah. I would love a AIR based video uploader. I am going to look at that api once I finish the playlist stuff.

    (although you can use the auth stuff I am working on).

    mike chambers

    mesh@adobe.com

  • Mike, Sonke,

    it is impossible to implement the features using the AS3 supported by Flash. You can however do it in Flex, using HTTPService class, I will do that in the next few days as I get home from my holiday.

    I find it is a serious problem that you cannot use PUT and DELETE HTTP methods with URLRequest, and that you are not allowed to override the authorization http header for your calls. It works in the authoring environment, but not once hosted on a site. I haven’t tested that part with Flex yet. I use the google.com/account/login (or whatever) in my API; you could use the redirect version by going to HTML but that would kill the purpose. I suppose it would work fine in AIR however as it’s not hosted.

    anyhow..

    Martin

  • btw: if any of you want to contribute to the project, it’d be a blast.

  • admin

    Martin,
    thanks for the info and sorry your comments showed up so lately which happened due to my server change.
    Enjoy the rest of your holiday and I am excited what comes next!

  • I’ve been hard at work on a workaround to AS3’s un-RESTful-ness.. You can read me here: http://blog.martinlegris.com/?p=92

    Basically I developed a AMFPHP RESTProxy for AS3 applications, enabling them to do the full scope of REST webservice calls through using this proxy. Flex folks might not be as interested, but most others would!

    I will release the rest of the API features to cover the full set of the recent rollout by YouTube within a week, all that will remain will be to solve the uploading of videos.

    :)

  • jon

    There’s an AIR application that allows you to upload videos to your YouTube account. Its called DeskTube.. Check it out.

  • Thanks alot for giving so much useful info in a single article
    Regards.