Soundcloud API - 使用SC.recordupload从轨道图稿的外部URL上传图像

时间:2012-04-29 13:47:41

标签: javascript soundcloud

当图像的位置是外部网址时,如何使用SC.recordUpload功能上传曲目图稿?

我错误的代码:

imageObj = new Image();
imageObj.src = "http://maps.googleapis.com/maps/api/staticmap?center=51.4993603,-0.1074693&zoom=12&size=200x200&maptype=roadmap&sensor=false";

....(connection code and track recording)....

SC.recordUpload({
    track: {
        title: "New track",
        description: "Track description",
        sharing: "public",
        artwork_data: imageObj
      }
    }, function(track){
        //Track uploaded!
        $("#uploadStatus").html("Track uploaded!");

1 个答案:

答案 0 :(得分:0)

目前,SoundCloud JS SDK不支持艺术品上传。

很抱歉。