2016-02-29 47 views
3

我正在研究CMS,并希望让用户嵌入Soundcloud曲调和播放列表。
我想避免摆弄API - 因为它似乎不是必要的:)
相反,我只是用适当的参数拼凑一个iframe-src-url。
我无法找到一个正式名单任何地方,所以我收集了我自己,从各个岗位这里和其他地方:Soundcloud iframe参数列表?

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

我缺少什么参数?

我真正想要的是下一个上一个列表按钮。他们是否存在?

回答

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来解决此问题,以此作为到达下一首和上一首曲目的方式。

+0

谢谢 - 添加了3个新的名单:)我害怕这个答案。 start_track技巧要求侦听器永远不要完成一个轨道:( – T4NK3R

+0

@ T4NK3R这些都是公共参数,你要求的东西不存在,我尽我所能提供了一个暴露接口的解决方案 – JAL

+0

我知道,很感谢! - 但仍然希望有一个秘密/实验的... – T4NK3R