Soundcloud API SC.stream (track not loading)

天涯浪子 提交于 2020-01-02 05:24:05

问题


I'm streaming music from the soundcloud API, and sometimes when I call SC.stream the track does not stream and I get the error:

"GET http://api.soundcloud.com/tracks/80608808/stream?client_id=78bfc6a742a617082972ddc5ef20df2a 404 (Not Found)"

The GET request works for some tracks and not for others. I cannot figure out why or if there is an issue with the SC API.

He is a replication of my problem on plnkr:

http://plnkr.co/edit/TMVWGg

Thanks!


回答1:


This is because some soundcloud tracks are not streamable via api. You can check this for each track by property "streamable".



来源:https://stackoverflow.com/questions/15194776/soundcloud-api-sc-stream-track-not-loading

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