html - Keep audio player loaded while changing pages, jQuery circle player -
i have jquery circle player want stick top of website. problem when user moves 1 page another, audio stops playing because being reloaded.
possible keep audio player "stuck" , loaded when user moves page in site? want "fixed" div cross page without having open new page player in it. don't know if possible or how difficult be.
here player:
<div id="cp_container_1" class="cp-container" style="background:none;"> <img id="bg_image" class="bg_image1 cp-play" src="jquery.jplayer.2.2.0/v11/circle.skin/jplayer_bg_blue.png" /> <img id="bg_image" class="bg_image1_5 cp-pause" src="jquery.jplayer.2.2.0/v11/circle.skin/jplayer_bg_image_green.png" /> <img id="play_bg" src="jquery.jplayer.2.2.0/v11/circle.skin/jplayer_play_bg.png" height="57" width="56" /> <div class="cp-progress-holder"> <div class="cp-progress-1"></div> <div class="cp-progress-2"></div> </div> <div class="cp-circle-control"></div> <ul class="cp-controls"> <li><a id="play1" class="cp-play" tabindex="1">play</a></li> <li><a id="pause1" class="cp-pause" style="display:none;" tabindex="1">pause</a></li> </ul> </div> var mycircleplayer = new circleplayer("#jquery_jplayer_1", { mp3: "gotanproject_triptico.mp3", }, { supplied: "mp3", cssselectorancestor: "#cp_container_1", swfpath: "jquery.jplayer.2.2.0/v11/js", wmode: "window", play: function () { $(".bg_image1").attr("src", "jquery.jplayer.2.2.0/v11/circle.skin/jplayer_bg_image_green.png"); }, pause: function () { $(".bg_image1").attr("src", "jquery.jplayer.2.2.0/v11/circle.skin/jplayer_bg_blue.png"); }, ended: function () { $(".bg_image1").attr("src", "jquery.jplayer.2.2.0/v11/circle.skin/jplayer_bg_blue.png"); } });
i think use ajax , load content.
have @ question , answer:
continuing music playback while changing pages
i hope helps,
tom
Comments
Post a Comment