how can i play soundcloud streams on android?
Date : March 29 2020, 07:55 AM
I wish did fix the issue. The media player (at least older versions) has problems with https urls. You'll need to manually resolve the url (issue a GET request and check the redirect), then give the result to MediaPlayer. There are a lot of other issues with the MediaPlayer though, it's not straightforward to get it to work.
|
jquery soundcloud play/stop
Tag : jquery , By : barefootChild
Date : March 29 2020, 07:55 AM
With these it helps I have never used SoundCloud, but it appears that you are trying to use the same element to both play and stop. If that is the case, this should work: jQuery(".playSound,.stopSound").click(function(){
jQuery(this).toggleClass("playSound stopSound");
widget.toggle();
});
|
SoundCloud Api redirect confusion and Audio Api Streams
Date : March 29 2020, 07:55 AM
hop of those help? I am attempting to make a request to the SoundCloud API. Then when I get the response I set the stream_url as the source of an < audio > element. , When you run the request for https://api.soundcloud.com/tracks/140326936/stream?client_id=5c6ceaa17461a1c79d503b345a26a54e
|
Soundcloud js api. Can't stop playing
Date : March 29 2020, 07:55 AM
it should still fix some issue I'm developing app to play soundcloud traks. I'm using ttwmusicplayer and want to bind soundcloud actions on it's play/pause. So, I'm doing it like this: , I think there should be one sound object var mysound;
SC.stream('/tracks/208818225', function(sound){
mysound = sound;
mysound.play();
});
mysound.stop() //or mysound.pause()
|
Creating different streams for different sounds using soundcloud spi
Date : March 29 2020, 07:55 AM
like below fixes the issue Safe the #id in currentPlaying (for example) and now you can check if you have to open a new stream or play the old one $('.song').each(function() {
var i = $(this).attr('id');
$(this).click(function(){
if(is_playing == false){
if(currentPlaying != i) {
if(player) player.pause();
SC.stream('/tracks/'+i).then(function(stream){
player = stream;
});
}
player.play();
is_playing = true;
} else {
player.pause();
is_playing = false;
}
});
});
|