YouTube Playlist Reader


A lightweight, superfast, reader for YouTube playlists :)

(Version 1.0.0 - released July 4th, 2012)

More projects from Fotis Evangelou


YouTube Playlist Reader was written to cover a specific need: To fetch the videos of specific playlists on YouTube for JoomlaDay Greece. Most things in life tend to come from real needs, right?

To summarize things:

I built the script cause I wanted a simple way to embed the videos from JoomlaDay Greece (an event we organize) on, having just switched from Vimeo which offered a similar widget. I hated to look around for some crappy jQuery widget to do that, so I just built a new one - and why not share it? Enjoy!


Grab the zip file and extract its contents. The base setup is calling the ypr.js file and initiating the script in your page using this code block:

<script type="text/javascript" src="path/to/ypr.js"></script>
<script type="text/javascript">
      'playlistID':'DCAE41611AFA0993', // this is your playlist ID (it's the part after PL in
      'containerID':'play', // the ID of the container tag
      'count':12, // how many videos do you wanna show?
      'theme':'<li><a class="fancybox.iframe" href="{iframeURL}"><img src="{img_m_url}" alt="{title}" width="{img_m_width}" height="{img_m_height}" class="yprVideoThumb" /><span>{title}</span></a></li>' // A theme to pass on and overwrite the default layout. See available content options by exploring the "ytpl" function in the ypr.js file.

Finally you need a placeholder element, aka the html tag in which the script will render the video gallery inside an unordered list. In the case above it's the html element with the id "play" (the same as in the source of this document - a div element).


Copyright © 2008- Fotis Evangelou.
This project is released under the GNU/GPL v2 license.