You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
Got the following code working in all browsers except ie9
// on player paused remove pause from tracks
$(document).bind('onPlayerPause.scPlayer', function(event){
$('p.pause').removeClass('pause').addClass('playReady');
});
// on play being clicked
$(document).bind('onPlayerPlay.scPlayer', function(event){
//console.log('Started playing');
$('p.nextPlay').removeClass('nextPlay');
$('p.playReady').addClass('pause').removeClass('playReady');
// mark next track to play
$('p.pause').parent().parent().parent().nextAll('li.track:first').find('p.play').addClass('nextPlay');
});
// on track finish play next track
$(document).bind('soundcloud:onMediaEnd', function(player, data) {
//console.log('Finish play even happened');
$('p.nextPlay').click();
});
All event fire except soundcloud:onMediaEnd, this works in all other browsers.
Jules
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Got the following code working in all browsers except ie9
All event fire except soundcloud:onMediaEnd, this works in all other browsers.
Jules
The text was updated successfully, but these errors were encountered: