Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var playlength = myplaylist.playlist.length
- var currentSong = 0;
- $("#jpId").jPlayer( {
- ready: function() { // The $.jPlayer.event.ready event
- $(this).jPlayer("setMedia", { // Set the media
- m4v: "m4v/presentation.m4v"
- }).jPlayer("play"); // Attempt to auto play the media
- },
- ended: function() { // The $.jPlayer.event.ended event
- currentSong++;
- if(currentSong==playlength)
- ------> Show your html
- },
- supplied: "m4v"
- );
- var currentSong = 0;
- $("#music").bind($.jPlayer.event.ended,function(event){
- currentSong++;
- if(myplaylist.playlist.length == currentSong) {
- $('.show').html('Ended');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement