【问题标题】:Soundcloud embedded HTML theme_color option not workingSoundcloud 嵌入式 HTML theme_color 选项不起作用
【发布时间】:2022-05-15 12:06:35
【问题描述】:

我在网页中嵌入 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>

有人知道原因或解决方法吗?我希望能够将播放器的主要外观从灰色“着色”为另一种颜色。

【问题讨论】:

  • 据我所见,它确实会影响颜色,但主要是播放/暂停按钮。
  • 如果您想完全控制,请转到此处的文档:developers.soundcloud.com/docs/custom-player
  • @agam360。 iframe 颜色选项仅影响播放按钮的颜色。是的,刚开始查看自定义播放器文档。谢谢。

标签: html embed soundcloud


【解决方案1】:

您可以使用 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-07-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-04
    相关资源
    最近更新 更多