1

我在网页中嵌入 Soundcloud HTML 代码以显示音频播放器。在 Mac 上的 Safari 5.1.4 中预览并在我的 iPhone 应用程序的 web 视图中运行(其行为应与 Safari 相同)嵌入参数“theme_color”不起作用。

例如

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

任何人都知道为什么或解决方法?我希望能够将播放器的主要外观从灰色“着色”为另一种颜色。

4

1 回答 1

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&amp;show_comments=true&amp;auto_play=false&amp;color=00cc00&amp;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&amp;show_comments=true&amp;auto_play=false&amp;color=00cc00&amp;theme_color=111111" type="application/x-shockwave-flash" width="100%"></embed> 
</object>

有关可用参数的列表,请查看:http: //developers.soundcloud.com/docs/widget

于 2012-11-05T22:25:20.463 回答