Tuesday, March 11, 2008

Something to write home about

Hi everyone,

Since the initial YouTube Data API launch back in August, the team has been hard at work completing a whole suite of tools and features to make it possible for you to fully integrate YouTube into your sites and applications.

Here's the sound byte: We now support upload, other write operations, and internationalized standard feeds. (And there was much rejoicing!) We're also introducing player APIs and a chromeless player -- a barebones player SWF that's fully customizable and controllable using the player APIs. (Thus, closing out these five feature requests in the issue tracker.)

The Java client library and the PHP client library (in the Zend Framework 1.50RC2 release) have both been updated, as well as the respective developer guides.

We've also released a new Terms of Service that you'll want to check out if you're going to use the API.

Read below for a little more detail, watch the team talk about what's new, or dive right into the documentation.



Authentication, Upload, and Other Write Calls

Two types of authentication are now available to allow your users to log into their YouTube accounts on your site. AuthSub (proxy auth for web applications) and ClientLogin (for installed applications). If you've used other Google Data APIs, this should be very familiar to you.

Now that you can authenticate users, that means your users can upload to YouTube, comment on videos, manipulate playlists, and more, all without leaving your site or app. Check out the protocol guide and the reference guide for all the gory details.

Internationalization

Wie geht's? Bonjour, comment allez-vouz? Come stai? You can now access internationalized feeds in the 18 domains that YouTube supports.

Videos that are top rated in France right now:
http://gdata.youtube.com/feeds/api/standardfeeds/fr/top_rated

The most relevant videos about bicycles (vélos) in French:
http://gdata.youtube.com/feeds/videos?vq=vélos&orderby=relevance_lang_fr


Player APIs and Tools

For the first time, we're giving you hooks inside the YouTube embedded player with the JavaScript API. Instead of a black box, you'll now be able to control the player (stop, play, mute, seek, etc.), access the state of the player (ie. playing, buffering, stopped), and see how far along the video is (how many bytes loaded, how far into the video).

If that's not enough control, we've also got the new chromeless player. You can add all of your own buttons and aesthetics to make YouTube fit in with your site, and control it with the player APIs.

Flash APIs are also available with identical calls if you want to load our player into your Flash app.

Check out my short tutorial video on this if you don't feel like reading through docs just yet.

Too overwhelmed with all the new possibilities? You might want to check out some case studies from some of our testers who have already integrated with YouTube.

Also, mark your calendars -- we're holding a YouTube/Picasa specific hackathon on March 27th at the Googleplex in Mountain View if you want to meet the team in person.

Phew! Okay, that was a lot to digest, so when you're ready, let us know what you think over at the developers forum. We can't wait to see what you guys build.


Cheers,

Stephanie Liu, on behalf of the whole team