I been trying to stream some tracks in a mobile app I built in phonegap but the SC.stream() function of sound cloud returns nothing on mobile but works in a desktop browser. Also the SC.get works, but the problem is when I try to stream.
This is the code:
/* this works */
SC.initialize({
client_id: '76e637279c08c0a0e1ed081e22f0d37e'
});
SC.get("https://api.soundcloud.com/users/185201/tracks", {limit: 6 }, function(tracks){
/* ... */
});
/* This doesn */
function playPauseTrack( souncloundTrackId, $musicBlock ){
SC.stream("http://api.soundcloud.com/tracks/"+souncloundTrackId, function(track){
$musicBlock.click( function(){
//...
//...
});
});
}