Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Event soundcloud:onMediaEnd not firing in ie9 #49

Open
julesbl opened this issue Feb 20, 2013 · 0 comments
Open

Event soundcloud:onMediaEnd not firing in ie9 #49

julesbl opened this issue Feb 20, 2013 · 0 comments

Comments

@julesbl
Copy link

julesbl commented Feb 20, 2013

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant