soundcloud

Can't add a track to a group via soundcloud API using javascript

試著忘記壹切 提交于 2019-12-12 00:31:30
问题 I've cloned the javascript SDK from github, and other than Firefox15.0 being unhappy, I'm able to GET anything that I want. (Track lists, group lists). I want to be able to add one of my tracks to one of my groups, (so far I've only got one of each, to keep testing simple.) The console lets me add (PUT https://api.soundcloud.com/groups/92779/contributions/58889291) and remove the same track from a group (DELETE with the same URI), but my not with the javascript SDK jQuery example. (I'm

How to push oath token to LocalStorage or LocalSession and listen to the Storage Event? (SoundCloud Php/JS bug workaround)

限于喜欢 提交于 2019-12-12 00:12:51
问题 This references this issue: Javascript SDK connect() function not working in chrome I asked for more information on how to resolve with localstorage and was asked to create a new topic. The answer was "A workaround is instead of using window.opener, push the oauth token into LocalStorage or SessionStorage and have the opener window listen to the Storage event." but i have no idea how to do that. It seems really simple, but i don't know where to start. I couldn't find an relevant examples.

Dates in Soundcloud - API

好久不见. 提交于 2019-12-11 19:04:33
问题 Another question about using the API with Soundcloud (I'm using PHP). I'll be uploading a large collection of sounds, some of which were recorded back in 1994 or so. I'd like to be able to use the search API to retrieve files with this date. I can see that the track resource has [release_day] , [release_month] and [release_year] - but these fields do not appear to be available as filters in a query, correct? So if I cannot search by the date using those fields, the only other option I can

Soundcloud API - Upload image from external URL for track artwork, using SC.recordupload

*爱你&永不变心* 提交于 2019-12-11 18:53:01
问题 How can I upload track artwork using the SC.recordUpload function, when the location of the image is an external URL? My erroneous code: 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){ /

Upload songs/audio-files to a specific soundcloud account using soundcloud api?

喜夏-厌秋 提交于 2019-12-11 15:05:30
问题 I am working on a php code as shown below which convert mp4 files (present in the in_folder) to mp3 (and send it into out_folder) <?php foreach ($mp4_files as $f) { $parts = pathinfo($f); switch ($parts['extension']) { case 'mp4' : $filePath = $src_dir . DS . $f; system('ffmpeg -i ' . $filePath . ' -map 0:2 -ac 1 ' . $destination . DS . $parts['filename'] . '.mp3', $result); break; case 'mp3' : // copy($f, $destination. DS . $parts['filename']. '.' . $parts['extension']); copy($f, $mp3

How to use SoundManager2 to stream from SoundCloud, and make visualizations?

空扰寡人 提交于 2019-12-11 14:46:39
问题 SoundManager2 gets a data error and I cannot visualize anything? or I cannot access the song, permission denied? or It works when I first play it, but if I pause it and play again, I get a data error? 回答1: This has recently been fixed, as it was partly due to half of the needed files being there. Now it is fixed however, it still might not work off the bat. The obvious first step is you use the api to get the track stream_url, which looks like http://api.soundcloud.com/tracks/69322564/stream

Soundcloud API returns 0 tracks for user

这一生的挚爱 提交于 2019-12-11 14:37:58
问题 For a client of mine I used the Soundcloud API to show tracks on his website. now it had stopped working, the API returns 0 tracks. https://api.soundcloud.com/users/1525250/tracks?client_id=dec73200bd1c369969eb9df50f4a190b I checked his account and all tracks have the right permissions. , What am I doing wrong? (website of client) eelkekleijn.nl 回答1: All rate limits on the SoundCloud API are currently calculated against a client application's client id so you need to change your application

How does soundmanager interpret a soundcloud stream?

余生长醉 提交于 2019-12-11 14:29:06
问题 using the "inline player" demo. <li><a href="http://api.soundcloud.com/tracks/42021012/stream.json?client_id=[myclientID]">play song</a></li> that will take me to a mp3 link, but since it has more parameters at the end, soundmanager doesn't load it as a mp3. 回答1: Try adding &filename=soundcloud.mp3 at the end. <li><a href="http://api.soundcloud.com/tracks/42021012/stream.json?client_id=[myclientID]&filename=soundcloud.mp3">play song</a></li> 回答2: Please, try to add type="audio/mpeg" in your

Invalid javascript/JSONP response from Soundcloud API

自作多情 提交于 2019-12-11 11:41:29
问题 When I include this url as a <script> in my HTML document, Chrome does not call my callback function, whereas it works perfectly for other urls returned by soundcloud's resolve api. After a long investigation using Chrome Dev Tools, I finally found out that the javascript returned by that call fires a SyntaxError (cf the screenshot below). How can I get my callback function to be called as usual for that file? 回答1: DevTools actually pinpoint the issue: There is an unallowed character (\u2028)

returning array from function in javascript

浪尽此生 提交于 2019-12-11 11:40:09
问题 so I come from a heavy python background, and I'm trying to wrap my head around javascript. Here I have a function that returns an array of track IDs for soundcloud songs by the artist 'v-2-followers'. How would I go about assigning the output of SC.get(stuff) to a variable to reuse the track list in another function. I'm sure I'm missing something fundamental. I'm less looking for an answer that explains how to do this, but more why it's done like that. That said I would also very much