【问题标题】:Trigger events based on timestamp of embedded Soundcloud track基于嵌入式 Soundcloud 音轨的时间戳触发事件
【发布时间】:2015-07-18 01:38:03
【问题描述】:

是否可以根据嵌入式 Soundcloud 轨道的时间戳触发事件?

我想根据 Soundcloud 曲目的内容显示/隐藏照片,但无法在 API 文档中找到相关信息。

【问题讨论】:

    标签: soundcloud


    【解决方案1】:

    是的,这是可能的。请分享一些代码。嵌入式是什么意思?

    我假设你会使用 JS。

    您可以使用 ie 定时 cmets。 https://developers.soundcloud.com/docs/api/sdks#javascript

    SC.stream("/tracks/293", {
      autoPlay: true,
      ontimedcomments: function(comments){
        console.log(comments[0].body);
      }
    });
    

    或者您可以使用标准玩家事件并使用您自己的数据库。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-23
      • 1970-01-01
      • 1970-01-01
      • 2015-12-12
      相关资源
      最近更新 更多