T4N*_*K3R 5 embed iframe soundcloud
我正在使用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)
Run Code Online (Sandbox Code Playgroud)
我缺少什么参数?
我真正想要的是列表的“ 下一个”和“ 上一个”按钮。它们甚至存在吗?
你缺少:
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.
Run Code Online (Sandbox Code Playgroud)
在文档中找到。
它看起来像next()和prev(),skip(index)都是小部件上的方法而不是参数。您可以通过保留当前曲目的索引并向参数传递一个值start_track作为获取下一个和上一个曲目的方法来解决此问题。
| 归档时间: |
|
| 查看次数: |
2483 次 |
| 最近记录: |