I'm working with the Soundcloud API - and everything is working great, aside from on iOS Safari.
Here's my code below:
SC.initialize({
client_id: config.soundcloudClientId
});
var trackUrl = http://ift.tt/17KmNHP;
var splat = trackUrl.split('/');
var userName = splat[splat.length - 2];
var trackName = splat[splat.length - 1];
SC.stream("/users/"+userName+"/tracks/"+trackName, function(sound){
debugger;
});
In any web browser, the value of sound
(see "debugger" above) passed in from the callback is a soundManager2
object, ready to be played.
On iOS however (inspecting in iOS simulator and Safari dev tools), the value of sound
is false
.
Why is this? I can't seem to find any documentation or errors of what this means?
Aucun commentaire:
Enregistrer un commentaire