Soundcloud iframe参数列表?
我正在开发CMS,希望用户能够嵌入Soundcloud音乐和播放列表。Soundcloud iframe参数列表?,iframe,embed,soundcloud,Iframe,Embed,Soundcloud,我正在开发CMS,希望用户能够嵌入Soundcloud音乐和播放列表。 我希望避免篡改API—因为它似乎不是必需的:) 相反,我只是用适当的参数拼凑出一个iframe src url。 我在任何地方都找不到官方名单,所以我从这里和其他地方的各种帖子中收集了自己的名单: &color=FF4444 // play-button and equalizer graphic (if not &visual=true) &auto_play=false // shouls
我希望避免篡改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=false // 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)
我缺少什么参数
我真正想要的是列表的下一个和上一个按钮。它们真的存在吗?你错过了:
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.
在地图上找到的
看起来
next()
和prev()
和skip(index)
都在小部件上,而不是参数上。您可以通过保留当前曲目的索引,并将值传递给start\u track
参数,作为访问下一个和上一个曲目的方法来解决此问题。谢谢-在列表中添加了3个新的选项:)我害怕这个答案。“开始”音轨技巧要求听众永远不要完成音轨:(@T4NK3R这些都是公开参数。你所要求的并不存在。我已经尽了最大努力提供了一个解决方案,其中暴露了接口。我知道,并表示感谢!-但仍然希望有一个秘密/实验性的解决方案…我刚刚意识到:如果iframe足够高(+225px)曲目列在下,标题、播放和所有内容=不需要下一个/上一个按钮:)