soundcloud

redirect_uri and how to host callback.html on SoundCloud?

杀马特。学长 韩版系。学妹 提交于 2019-12-07 09:30:18
问题 I am trying to access Soundcloud from a local HTML page on my laptop. I am stuck at the part of hosting "callback.html" as a redirect_uri. The script I am trying to run is the basic Authenication JavaScript from the Soundcloud documentation page: <script src="http://connect.soundcloud.com/sdk.js"></script> <script> // initialize client with app credentials SC.initialize({ client_id: 'my_client_id', redirect_uri: 'http://127.0.0.1/Users/Maria/Documents/SoundcloudClient/callback.html' }); //

Open stream_url of a Soundcloud Track via Client-Side XHR?

我的梦境 提交于 2019-12-07 07:49:40
问题 Since you can call the the Soundcloud API via XHR (because of the CORS headers it sends http://backstage.soundcloud.com/2010/08/of-cors-we-do/, right?) I was wondering if this was possible with the audio data itself, like a tracks' stream_url for example. When trying to open the stream_url with a XHR (from the Client Side) using the Web Audio API, i get a Origin is not allowed by Access-Control-Allow-Origin. error. Is there a way to load Audio resources via XHttpRequest from Client-Side

Soundcloud API doesn't explicitly support pagination with json

这一生的挚爱 提交于 2019-12-07 04:30:46
问题 Specific example I was working with: http://api.soundcloud.com/users/dubstep/tracks.json?client_id=YOUR_CLIENT_ID You'll get their first 50 tracks, but there is not next-href object like what you see in the xml version. However, you can use offset and limit and it works as expected- but then I would need to "blindly" crawl through tracks until there are no more tracks, unlike with the XML version which gives you the "next page" of results. I wouldn't have even noticed it was paginated except

How is SoundCloud Auto Playing the next song on their mobile site?

試著忘記壹切 提交于 2019-12-07 02:10:31
问题 Okay, so I know that iOS doesn't allow auto-play, but how is SoundCloud auto-playing the next song on their mobile site? I can get the next song I want to fill in the iframe src and the widget reloads to display that track. I have tried many workarounds, even if I call the 'sc.play()' method when the next track is ready I still can't get it to auto-play. The big orange button on the iframe changes to the pause button, but it just won't play. I have to hit the button again to get playback to

How to search specific user's tracks by tag with the Sound Cloud API?

流过昼夜 提交于 2019-12-06 21:21:30
问题 I want to search for tracks by tag relating only to my user name i.e. the Royal Opera House. For example: http://api.soundcloud.com/users/royaloperahouse/tracks/?client_id=238947HSGDHSDG&tags=eric tells me I need to use a q parameter. To humour it I search: http://api.soundcloud.com/users/royaloperahouse/tracks/??client_id=238947HSGDHSDG&tags=eric&q=e and simply get a list of sounds from the whole of Sound Cloud not the ones relating to just my user. Similarly if I try and search the tracks

Using the genres filter on Soundcloud API

扶醉桌前 提交于 2019-12-06 14:28:01
问题 I am using the genres filter on Soundcloud API, the codes: $tracks = $client->get('tracks', array('genres' => 'punk')); It is working well and return all tracks which genre are punk, but when I try to change the codes: $tracks = $client->get('tracks', array('genres' => 'rock')); It can not return all tracks which genre are rock. My question is: where can we find correct music genres from Soundcloud? Maybe the Soundcloud API which should give us a method to get a list for common genres. 回答1:

Soundcloud HTML5 widget continuous play

99封情书 提交于 2019-12-06 12:51:04
问题 I'm trying to get the SoundCloud HTML5 player widget to automatically start and seek to a specific track and position but no matter what I try it doesn't work. I'm using the API code below: <iframe width="100%" height="450" scrolling="no" id="soundcloud-player" frameborder="no" src="https://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F3058825&color=00be53&auto_play=false&show_artwork=true"></iframe> <script type="text/javascript" src="http://w.soundcloud.com

How to fetch playback statistics

我怕爱的太早我们不能终老 提交于 2019-12-06 12:47:35
问题 I'd like to know if it's possible (and if yes: how) to fetch statistics for our soundcloud tracks via the soundcloud API. I know that i can get the current playback count of my tracks but is it possible to get the playback count of yesterday and so on to draw a custom graph ? Or do i have to poll the api and record the data myself? 回答1: Not officially. Latest and official api does not support this feature yet. It voilates the tos. Check that question first, before you read further: soundcloud

Soundcloud modify the waveform color

左心房为你撑大大i 提交于 2019-12-06 12:17:15
问题 I am creating a website based on soundcloud and i need to modify the soundcloud waveform color to look like the following I read in the blog of soundcloud and it seemed like waveform.js will do the trick but still i am getting something like this Can anyone let me know how can i get the exact same effect. I saw on soundcloud homepage they are doing same thing using canvas but i don't how exactly to do that. The image waveform returned from soundcloud api is as follows http://w1.sndcdn.com

How to have users 'reconnect' with soundcloud on each page reload?

给你一囗甜甜゛ 提交于 2019-12-06 11:57:53
问题 I'm using the Javascript SDK inside a node.js (Express) App. Connecting Users works fine, but the connection does not persist between page reloads. Is this the default behaviour, or is the User supposed to stay connected in new requests? Do I have to use OAuth token authentication and if so, how can this be done with the JS-SDK? Inside the "Permission"-Popup, Users are already logged in with soundlcoud, though. (just have to click the "connect" button each time) 回答1: Yep, this is the way to