YouTube Playlist Reader

Download

A lightweight, superfast, reader for YouTube playlists :)

(Version 2.0.0 - released October 16th, 2015)

More projects from Fotis Evangelou

Introduction

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 joomladay.gr, 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!

Setup

Grab the zip file and extract its contents. Add the main initializer script inside the <head> section of your site. For advanced usage parameters, see the source code of this page.

<script type="text/javascript">
	(function() {
		var fse = document.createElement('script'); fse.type = 'text/javascript'; fse.async = true;
		fse.src = 'path/to/ypr.js?v=2.0.0';
		(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(fse);
	})();
</script>

Finally you need a placeholder element, a simple html link ("a" tag), with at least a specific data attribute (data-source="ypr") and the source of the link pointing to the actual YouTube playlist. Additional parameters for the grid display can be set by 2 more data attributes are as in the example below:

<a data-source="ypr" data-columns="3" data-count="15" href="https://www.youtube.com/playlist?list=PL0875C16C899A8DE6&t=1">My music playlist</a>

Demo

My music playlist

My short films playlist

Release changelog

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