Repository navigation
Getting Started
To install IkirPlayer on your page, start by downloading:
- The
assetsdirectory ikir.cssikirPlayer.js-
playlist.txt(a good example for how to structure your playlist file).
and placing them into your site directory.
In the head element, enter this with the rest of your stylesheets:
<link href="/ikir.css" rel="stylesheet" type="text/css" media="all">
Then, choose the position where you want your player to be located. (For the purposes of the demonstration, we'll do the bottom of the body element.)
Enter this into the page:
<div class="ikirwrap" id="ikirwrap">
<iframe class="ikirframe" id="player" type="text/html" src="http://www.youtube.com/embed/M7lc1UVf-VE?enablejsapi=1" frameborder="0" style="position:
absolute;width:0;height:0;border:0;"></iframe>
</div>
Make sure you include the src tag - the player won't work without it.
Next, at the start of the body element, enter:
<script src="<path to ikirPlayer.js>" playlist="<path to playlist.txt>" autoplay='<true/false>' shuffle='<true/false>'></script>
This will initialize IkirPlayer in your page. If you want to use a different playlist on a certain page, just replace the playlist tag's value with the path to the .txt file of the desired playlist. For an example of how you can style IkirPlayer, you can look at the source code for my personal website.