YoutubePL 0.1

Include a script containing the class YoutubePL written using Mootools and Google API and you will bind your combobox and a div to the plugin. On the same page you can create multiple pleaylist.
Demo is here: Demo 1 e 2 of YoutubePL



Details

Author
Nunzio Fiore
Current version
0.1
GitHub
MoogMoonkiki/YoutubePL
Downloads
5760
Category
Media
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_:
    • Element
    • Elements.from
    • Element.Style
    • Element.Dimenstions
    • String
    • Array

How to use

Include Mootools 1.4 with Elements.from more at least. Inlude Google API and charge SWF api in this way:

<script src="http://www.google.com/jsapi" type="text/javascript">
    </script>
    <script>
        google.load("swfobject", "2.1");
    </script>

Then include YoutubePL script:

    <script src="YoutubePL.js" type="text/javascript">
    </script>

You can choose two way for use YoutubePL. First one is to link your YoutubePL instance to a div and a select with youtube video's list. Second one is to link YoutubePL only to a div and giive an array of videos tio the constructor.

var ypl = new YoutubePL({
        select: 'videoSelection',
        videoContainer: 'videoDiv'
    });
    var ypl2 = new YoutubePL({
        videoContainer: 'videoDiv2',
        videos: ['2TaclzGjmm8', 'vorxYDEtuRY', '9mO5cKO7toE']
    });

    var runDemo = function(){
        ypl.run();
        ypl2.run();
    }

At the end run your ypl instances:

google.setOnLoadCallback(runDemo());

More Info

You can find more info at http://moog.moonkiki.com

Demo is here: demo youtubepl


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus