Google recently made a number of enhancements around list playback functionality to its YouTube embedded player, here are they:
The first change of note is the syntax for embedding the player in an HTML document. As for single-video playback, you can use the
embed code to load a list of videos, and the IFrame embed supports HTML5
playback in environments where Flash isn’t available.
Another change relates to the lists of videos is that &”the player no longer limited to just displaying videos from an actual YouTube playlist. You can also load a user’s uploaded videos, a user’s favorite videos, or videos matching a specific search term,” informs Google.
“In the embed URL, the listType and list parameters control the list of videos that is loaded. The listType value can be either playlist (the default), user_uploads, or search. Depending on the listType value, the list parameter value should be set to the desired playlist id, YouTube user ID, or search term,” Google explains. For example, the following embed code displays the most recent videos uploaded in the “GoogleDevelopers” YouTube channel:
The corresponding embedded player is shown below:
Also, YouTube Slam, that pits two videos against each other, is seeing hundreds of thousands of users cast more than a million votes on Slams. Google now let you turn any of your playlists into a YouTube Slam.
Here’s how to do it:
- Make a playlist with the videos you want to include in the Slam (you’ll need at least two videos and they have to be public), or choose a playlist you have already
- Go to www.youtube.com/slam/create
- Click the “Create Slam” button next to one of your playlists. It’ll look like this:
When you click “Play Slam” you’ll be taken into your game, and Google will show the highest scoring videos and players on the leaderboard page of your Slam. Click “View the winners” at any time to check it out.
Also, you can now play custom or existing Slams live with friends inside a Google+ Hangout by clicking the “Play Slam with your friends” link.
You can also share the YouTube Slam link with friends directly to get more people playing. If you feel like the Slam has been settled, you can remove it at any time.