jnrmo.blogg.se

Soundcloud 2 mp3
Soundcloud 2 mp3










soundcloud 2 mp3

HttpWebResponse myResponse = (HttpWebResponse)myRequest.EndGetResponse(callbackResult) HttpWebRequest myRequest = (HttpWebRequest)callbackResult.AsyncState Private void ReadWebRequestCallback(IAsyncResult callbackResult) Request.BeginGetResponse(new AsyncCallback(ReadWebRequestCallback), request) HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(TrackUrl + ".json?client_id=YOUR_CLIENT_ID") (Code is in C# but you will get the idea) public void Run() To achieve what I am talking about here, you will have to do some tricks similar to this: This generated audio URL has an expiration time like 15-20 minutes.

soundcloud 2 mp3

Upon requesting the 'audio' with the unique stream URL, you are being redirected to the actual end-point with the audio- this is the physical path and you can play it directly within your audio player. (There is no such thing as the actual audio is waiting ready for you to be streamed anytime - they are stored as binaries in AWS blob storages) The actual audio (in mp3 format) of the tracks are being created 'on demand' when you send an http request to the stream url. The stream Url you retrieved from their API can't be directly used within your own audio player.īecause actually, the stream URL is not the end-point URL of the audio you are expecting to play.












Soundcloud 2 mp3