Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I can confirm that the bug exists as well. I created an <a href="https://github.com/soundcloud/soundcloud-custom-player/issues/60" rel="nofollow">issue</a> about it on their github page, and i have also emailed support. I've spent the last two days trying to see if i could solve it by modifying their code somehow, but i'm pretty sure the bug exists in the actual flash payload that is being delivered via their API, and not on the javascript end of things.</p> <p>EDIT: ok, i came up with a temporary solution to circumvent soundcloud's bug.</p> <p>In sc-player.js around line 209 you should see:</p> <pre><code> load: function(track) { var url = track.uri; if(player){ player.api_load(url); }else{ // create a container for the flash engine (IE needs this to operate properly) $('&lt;div class="sc-player-engine-container"&gt;&lt;/div&gt;').appendTo(document.body).html(flashHtml(url)); } </code></pre> <p>This is the call that injects the new track into the flash player using the api_load call. Problem is that is totally not working right now. so instead of using that api, we just destroy the existing audio engine and replace it with a new one like so:</p> <pre><code> load: function(track) { var url = track.uri; if(player){ // player.api_load(url); $('.sc-player-engine-container').html(flashHtml(url)); }else{ // create a container for the flash engine (IE needs this to operate properly) $('&lt;div class="sc-player-engine-container"&gt;&lt;/div&gt;').appendTo(document.body).html(flashHtml(url)); } </code></pre> <p>Now it will play tracks after the first track finishes, or when the user switches tracks. This is not optimal because we have to keep loading an extra resource from soundcloud, but soundcloud has left us i a stick situation, and i see no other viable solution at the moment.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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