我正在使用API包装器Ruby Soundcloud。
我能够检索到一些声音响声和声音;播放列表信息以及更新。
问题1: “embeddable_by”不会更新(例如,当我更新为“all”时,它总是保持不变。)
问题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 %>&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe><br />
奇怪的是,如果我从Soundcloud网站(在声音页面上)获得嵌入代码,它就可以了。还奇怪的是它开始使用我的自定义嵌入代码!这不奇怪吗?
任何帮助将不胜感激!
答案 0 :(得分:0)
看起来“streamable”必须设置为“true”才能使其正常工作:/