Soundcloud API - Why are stream_urls for a particular artist not working anymore (404)

前端 未结 1 1264
感情败类
感情败类 2020-12-16 05:10

my site streams Soundcloud tracks from various bands using SoundManager2 with the Soundcloud stream_url and added secret_token and client_id. All bands seem to be working ex

相关标签:
1条回答
  • 2020-12-16 06:00

    Here is one ugly workaround if your app can check 404 on stream:

    Calling

    https://api.soundcloud.com/i1/tracks/<track_id>/streams?client_id=<cid>

    will respond in unconditional JSON response (that is you can't get XML) with RTMP stream, that will be valid for couple of minutes or so:

    {"rtmp_mp3_128_url":"rtmp://ec-rtmp-media.soundcloud.com:80/mp3:VeAGXsGTFb59.128?9527d18f1063a01f059bf10590159adb10dea0996b8c0cdb6748962c2c1b859ce6b56ee301b0b087e0695d03f6e9498fd963ef1328bc89c05e156bacca00317de55e78139e168138ead65c8fdac11f8d626674293d53f230cf5a"}

    0 讨论(0)
提交回复
热议问题