Note that there are some explanatory texts on larger screens.

plurals
  1. POjPlayer -- multiple instance mp3 player
    text
    copied!<p>I am working on a program in wich i need to use up to 4 instances of the jPlayer mp3 player. </p> <p>All seems to be working fine, but when i play all of them, 1 by 1 the following happens.</p> <p>I play the items, and when i try to play them once again, it seems to somehow not rewind all the way to the beginning of the soundstrack. It either starts at the last seconds, and you hear a sound like tss or something. or it randomly starts somewhere in the middle.</p> <p>But on the other hand, sometimes it does work, and it plays smooth as silk. I just use the standard jquery from the jPlayer site. Only thing i changed is CSS and some HTML. </p> <p>HTML is as follows:</p> <pre><code>&lt;div id="cp_container_1" class="cp-container"&gt; &lt;div class="cp-circle-control"&gt;&lt;/div&gt; &lt;ul class="cp-controls"&gt; &lt;li&gt;&lt;a class="cp-play" tabindex="1"&gt;play&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="cp-pause" style="display:none;" tabindex="1"&gt;pause&lt;/a&gt;&lt;/li&gt; &lt;!-- Needs the inline style here, or jQuery.show() uses display:inline instead of display:block --&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>The jquery that loads the source for the player is as followS:</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function(){ var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1", { mp3: "'.MEDIA_PATH.$questionResult-&gt;vraaggeluid.'" }, { cssSelectorAncestor: "#cp_container_1", swfPath: "script/jplayer", wmode: "window", solution: "flash,html", supplied: "mp3" }); }); &lt;/script&gt; </code></pre> <p>Anyone that can help me? the script above is combined with PHP, it's in an echo. I also tried using static values as a source, but that wouldn't help.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload