How does soundmanager interpret a soundcloud stream?

余生长醉 提交于 2019-12-11 14:29:06

问题


using the "inline player" demo.

 <li><a href="http://api.soundcloud.com/tracks/42021012/stream.json?client_id=[myclientID]">play song</a></li>

that will take me to a mp3 link, but since it has more parameters at the end, soundmanager doesn't load it as a mp3.


回答1:


Try adding &filename=soundcloud.mp3 at the end.

 <li><a href="http://api.soundcloud.com/tracks/42021012/stream.json?client_id=[myclientID]&filename=soundcloud.mp3">play song</a></li>



回答2:


Please, try to add type="audio/mpeg" in your code like this:

<li>
    <a type="audio/mpeg" class="sm2_button" 
        href="https://api.soundcloud.com/tracks/214947467/stream?client_id=THE_CLIENT_ID">
        your eyes (title track) with intro
    </a>
</li>

It, solved the same problem I was having.



来源:https://stackoverflow.com/questions/11885100/how-does-soundmanager-interpret-a-soundcloud-stream

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