ajax - How does soundcloud play music on multiple players? -
if in soundcloud you'll notice when play song plays in main content of page 'footer' player. i'm trying achieve similar, jplayer or soundmanager. main content of pages ajaxed while footer stays consistent support continious player of website.
but question is, how play music ajaxed footer player while animating main content player , having seek functions on both?
with jplayer assume need listen $.jplayer.event.play
, $.jplayer.event.pause
, $.jplayer.event.ended
, $.jplayer.event.seeked
in main player , update secondary interface.
you may need create secondary interface (play/pause buttons, seek bar, etc) , add event handlers them passing corresponding parameters main player.
Comments
Post a Comment