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

霸气de小男生 提交于 2019-11-29 02:26:08

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"}

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!