Skip to content

jesvs/jquery-youtubepler

Repository files navigation

jquery.youtubepler

Create a YouTube player with a playlist from a list of links.

Installation

Include script after the jQuery library:

<script src="/path-to-your-js/jquery.youtubepler.js"></script>

HTML

<div id="player"></div>
<ul id="youtube_links">
  <li>
    <a href="http://www.youtube.com/watch?v=qItugh-fFgg">
      All Your Base Are Belong To Us
    </a>
    <a href="http://www.youtube.com/watch?v=dMH0bHeiRNg">
      Evolution of Dance
    </a>
  </li>
</ul>

Usage

The player option is required.

$(document).ready(function() {

  $('#youtube_links').youtubepler({
    player: '#player'
  });

});

Configuration

The player's dimension can be configured:

  • width (default 640px)
  • height (default 390px)
  $('#youtube_links').youtubepler({
    player: '#player',
    width: 640,
    height: 390
  });

Author

Jesús Sánchez

About

Create a YouTube player with a playlist from links.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published