2015-05-25 31 views
0

我正在使用API​​包裝Ruby Soundcloud。Soundcloud API與私人播放器(不工作)

我能夠檢索一些soundcloud聲音&播放列表信息以及更新它。

問題1: 「embeddable_by」不會更新(即使在我更新爲「全部」時也不會更新)。

問題2: 如果我將聲音設置爲共享:private(使用embeddable_by:all),我會得到「聲音無法在Soundcloud之外播放」。

我使用祕密憑證在我的網址:

<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/<%= @audiofile.soundcloud_url %>%3Fsecret_token%3D<%= @sc_token %>&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe><br /> 

什麼奇怪的是,如果我是從的SoundCloud網站獲得嵌入代碼(聲音頁),它的工作原理。也神奇地,它開始與我的自定義嵌入代碼工作!這不是很奇怪嗎?

任何幫助將不勝感激!

回答

0

看起來像「streamable」必須設置爲「true」才能使其工作:/

相關問題