I'm using the Soundcloud API for streaming and it's working beautifully on desktop but not on mobile (only testing iphone and ipad at this point).
The problem appears to be when I attempt to use the streaming SDK. Using the snippet below which comes straight from the Soundcloud docs is not even working on mobile. https://developers.soundcloud.com/docs/api/sdks#streaming
SC.stream("/tracks/293", function(sound){
sound.play();
});
If I console.log the sound variable, I get false, instead of the Soundcloud stream object I would expect.
SC.stream("/tracks/293", function(sound){
console.log(sound); // false
});
Getting a track using SC.get isn't a problem as I'm getting an object returned so Soundcloud is properly initialized.
Any help on this would be hugely appreciated.
Thanks!
el.onclick = function() {SC.stream('/tracks/123', {autoPlay: true});};
) but I can't get it to play on page load. I've tweeted a link to this question to the SoundCloud devs in hope of a response. - goodforenergy