-1

嗨,伙计们是 java 脚本的新手..

我正在尝试使用他们的 java 脚本 SDK 在 soundcloud 中流式传输音轨,但我的代码无法正常工作,请让我知道如何使其工作。下面是我的代码

        <!DOCTYPE html>
  <html><head>
  <script src=”http://connect.soundcloud.com/sdk.js”&gt;</script>

  <script src=”http://code.jquery.com/jquery-1.7.1.min.js”&gt;</script>

  <script>

  SC.initialize({

  client_id: “15c5a12b5d640af73b16bd240753ffbb?,

  redirect_uri: “http://connect.soundcloud.com/examples/callback.html”

  });
  $("#stream").live("click", function(){
      SC.stream("http://api.soundcloud.com/tracks/293", {autoPlay: true});
    });
  </script>
  </head>
  <body>
  <input type="button" href="#" id="stream" class="big button" value="Stream It Again, Sam" />
  </body>
  </html>
4

2 回答 2

0
于 2012-09-26T22:45:17.343 回答
0

In addition to the changes mentioned above, changing the JQuery version to 1.4 worked for me.

于 2014-12-03T21:28:08.963 回答