Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Okay. I'm sure other people have encountered this and not had a quick fix. I hope this helps someone else as I've been playing with possibilities for a day or so and think I have a workaround for everyone.</p> <p>What happens is that when SoundManager2 calls the song the first time it requests from the <a href="http://api.soundcloud.com/tracks/9708215/stream?consumer_key=" rel="nofollow">http://api.soundcloud.com/tracks/9708215/stream?consumer_key=</a>{YOUR KEY} page. This is great and the song can play just find as api.soundcloud.com has a crossdomain.xml file. What sucks though is that SoundManager2 on the next request (pause / play or next / previous track) just goes back to what it knows (which is a 301'd page at ec-media.soundcloud.com and as I mentioned before ec-media.soundcloud.com has no crossdomain.xml file) this is not great. My fix is every time I start a song over again I modify the Sound's URL to include a new ts={time} argument and then run .load() on the SMSound which causes a reload and fixes the issue.</p> <pre><code>var $track = $(this), data = $track.data('track'), playing = $track.is('.active'); newURL = soundManager.sounds["track_" + data.id].url.split("&amp;ts=")[0]; newURL += "&amp;ts=" + Math.round((new Date()).getTime() / 1000); soundManager.sounds["track_" + data.id].url = newURL; soundManager.sounds["track_" + data.id].load(); soundManager.sounds["track_" + data.id].url = newURL; </code></pre> <p>And then as to save on bandwidth when the song is paused I actually just mute it and save the position the song was paused at. When they unpause I play that track at the position they left off and unmute... It's not pretty but it is the best we can do with what we have (I think).</p> <p>Hope this helps someone. :)</p>
    singulars
    1. This table or related slice is empty.
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    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