This document describes how anyone can construct a playlist without making their own web page. If you have questions or comments, you can e-mail the author, Matt Albrecht (groboclown@gmail.com) .
This embedding guide uses the old API which is no longer supported. If you're going to start a new web page, please reference the new Snip API. This page is provided for those who are still on the original API implementation.
Constructing a Playlist with a URL
FIXME: explain each parameter, and how each set builds into a video element in the playlist.
Constructing a Playlist With XML
FIXME: explain the format of the XML, and how to pass that into the web page.
Example XML:
<playlist title="Sample Playlist">
<video title="BMW X3 TV commercial"
vId="ZM85Ola_FCY"
end="15.0" />
<video title="Bruce Lee vs. Chuck Noris"
vId="TbIwQMBeC2c"
start="0.0"
end="5.0" />
<video title="BMW 3-Series 2007"
vId="CnB-9ZTajS8"
quality="hq"
width="420"
height="240"
start="4.2"
end="10" />
</playlist>
Example URL for that XML: http://groboclown.net/yt_playlist/playlist-download.html?title=Sample+Playlist+-+XML&xml=http://groboclown.net/yt_playlist/sample-playlist.xml
Constructing a Playlist with JSon
FIXME: explain the format of the JSon, and how to pass that into the web page. Can link to json.org for a reference.
Example JSon data:
{
"videos": [
{
"title":"BMW X3 TV commercial",
"vId":"ZM85Ola_FCY",
"end": 15.0
},
{
"title":"Bruce Lee vs. Chuck Noris",
"vId":"TbIwQMBeC2c",
"start": 0.0,
"end": 5.0
},
{
"title":"BMW 3-Series 2007",
"vId":"CnB-9ZTajS8",
"start": 4.2,
"end": 10,
"quality": "hq",
"width": 420,
"height": 240
}
]
}
Example URL for that JSon data: http://groboclown.net/yt_playlist/playlist-download.html?title=Sample+Playlist+-+JSon&json=http://groboclown.net/yt_playlist/sample-playlist.json

