【问题标题】:List of Soundcloud iframe parameters?Soundcloud iframe 参数列表?
【发布时间】:2016-06-12 20:13:42
【问题描述】:

我正在开发 CMS,并希望让用户嵌入 Soundcloud 音乐和播放列表。
我想避免摆弄 API - 因为它似乎没有必要:)
相反,我只是将 iframe-src-url 与适当的参数拼凑在一起。
我无法在任何地方找到官方列表,所以我从这里和其他地方的各种帖子中收集了自己的列表:

&color=FF4444  // play-button and equalizer graphic (if not &visual=true)  
&auto_play=false  // shouls be obvious  
&show_artwork=true  // show the artist-graphic on the left  
&show_comments=true  // show fans commenst under equalizer  
&show_playcount=true  // number of times played @ bottom right  
&hide_related=true  // don't force user over to Soundcloud after play  
&show_user=false  // don't show uploaders name @ top left
&show_reposts=false  // ?
&liking=fals‌​e  // dont show [Like] button  
&visual=true  // use artist-graphic for background (way cooler)  
&buying=false  // no Buy (iTunes) button  
&sharing=false  // no [Share] button  
&download=false  // no download button  
&start_track=4  // start at specific track (for lists)

And guesed : )  
&following=false (removes [Follow] when mouseover artwork)  

我缺少哪些参数?

我真正想要的是列表的下一个上一个按钮。它们甚至存在吗?

【问题讨论】:

    标签: iframe embed soundcloud


    【解决方案1】:

    你不见了:

    download=true // Show/hide download buttons
    sharing=true  // Show/hide share buttons/dialogues
    start_track=0 // Preselects a track in the playlist, given a number between 0 and the length of the playlist.
    

    发现于docs

    看起来next()prev()skip(index) 在小部件上都是methods 而不是参数。您可以通过保留当前曲目的索引并将值传递给start_track 参数来解决此问题,以此作为获取下一个和上一个曲目的一种方式。

    【讨论】:

    • 谢谢 - 增加了 3 个新的列表 :) 我害怕这个答案。 start_track 技巧将要求听众永远不会完成一个轨道:(
    • @T4NK3R 这些都是公共参数。你要的东西不存在。我已尽我所能提供一个暴露接口的解决方案。
    • 我知道,很感激! - 但仍然希望有一个秘密/实验性的......
    • 我刚刚意识到:如果 iframe 足够高(+225 像素),则曲目会列在下面,包括标题、播放和所有内容 = 不需要下一个/上一个按钮:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-12
    • 2012-07-27
    • 2012-08-05
    • 1970-01-01
    相关资源
    最近更新 更多