我在网页中嵌入Soundcloud HTML代码以显示音频播放器。在Mac上的Safari 5.1.4中预览并在我的iPhone应用程序中运行webview(其行为与Safari相同)的嵌入参数" theme_color"不起作用。
E.g。
<iframe width="100%" height="166" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=http://api.soundcloud.com/tracks/44200324&auto_play=true&color=915f33&theme_color=00FF00"></iframe>
任何人都知道原因或解决方法吗?我希望能够&#34; colourise&#34;玩家从灰色到另一种颜色的主要外观。
答案 0 :(得分:0)
您可以使用flash对象获得自定义颜色:
<object height="81" width="100%">
<param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F32678080&show_comments=true&auto_play=false&color=00cc00&theme_color=111111"></param>
<param name="allowscriptaccess" value="always"></param>
<embed allowscriptaccess="always" height="81" src="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F32678080&show_comments=true&auto_play=false&color=00cc00&theme_color=111111" type="application/x-shockwave-flash" width="100%"></embed>
</object>
有关可用参数的列表,请查看: http://developers.soundcloud.com/docs/widget