soundcloud

redirect_uri and how to host callback.html on SoundCloud?

怎甘沉沦 提交于 2019-12-05 13:28:59
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' }); // initiate auth popup SC.connect(function() { SC.get('/me', function(me) { alert('Hello, ' + me.username);

How can I do a /resolve with the Soundcloud Javascript SDK?

青春壹個敷衍的年華 提交于 2019-12-05 10:38:04
问题 I would like a user of my app to paste in a Soundcloud track URL to a <input> field press a submit <button> have a function return the track's id So far the only way I know how to do a /resolve is via command line's curl command as demonstrated here http://developers.soundcloud.com/docs/api/reference#resolve. Is there a way to do this via a Javascript function? e.g. SC.resolve(trackURL, id, function(id, error){}); 回答1: All curl does is an HTTP request. JavaScript is definitely able to do an

SoundCloud API v3 Stream not working in Chrome

我们两清 提交于 2019-12-05 09:35:42
I have been trying to get this to work for months but it's still not working. It works fine in all browsers except Google Chrome. The problem is audio doesn't stream in Chrome. Here's a JS fiddle of the most basic example. https://jsfiddle.net/sq23uxqs/ First I include the new javascript SDK <script src="https://connect.soundcloud.com/sdk/sdk-3.0.0.js"></script> Then in my Javascript SC.initialize({ client_id: "78c2f0ffbef212328769a921e5663879" }); SC.stream('/tracks/293').then(function(player){ player.play(); }); Does anyone know why this is or is it a problem with the API? After

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

£可爱£侵袭症+ 提交于 2019-12-05 06:36:20
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 start. Having the user initiate the first play is fine, but how is SC auto-playing the next track? take

Soundcloud API Error NS_ERROR_DOM_BAD_URI: Access to restricted URI denied (JavaScript)

雨燕双飞 提交于 2019-12-04 22:27:15
I am just getting myself acquainted with Soundcloud's API and I am having some trouble. As far as I can tell, all I need in SC.initialize is a client_id. I have used the tutorials at Code Academy to get started and it was great. Now that I am actually trying to implement something I am running into some trouble. When I ran my code in Code Academy, it did exactly what I wanted it to do. Now that I am trying to run it in a browser, I am getting a blank screen and this error: NS_ERROR_DOM_BAD_URI: Access to restricted URI denied @ http://connect.soundcloud.com/sdk After doing some research, I

Soundcloud modify the waveform color

∥☆過路亽.° 提交于 2019-12-04 20:33:59
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/1m91TxE6jSOz_m.png Can anyone guide me the right way to achieve this. You can use a combination of

Using the genres filter on Soundcloud API

倖福魔咒の 提交于 2019-12-04 20:11:02
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. Unfortunately, we do not offer a way of retrieving list of genres. You can look into discussions here .

Soundcloud HTML5 widget continuous play

余生颓废 提交于 2019-12-04 18:40:44
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/player/api.js"></script> <script type="text/javascript"> (function(){ var widgetIframe = document

Unable to upload a track using the soundcloud API larger than 7MB

六月ゝ 毕业季﹏ 提交于 2019-12-04 17:17:52
I am unable to upload any tracks larger than about 7MB (413 Request Entity Too Large is returned). This functionality was previously working and the soundcloud api states that tracks can be upto 500MB . Here is an example using curl with a successful upload(4.9MB) and an unsuccessful one(7.4MB) I have provided dropbox links to the tracks(my own production, so no copyright issues!!!) if anyone wants to try to replicate. You will need to add your oauth_token. successful upload = 4900kb_307sec_128kbps_44100hz.mp3 curl -i -X POST "https://api.soundcloud.com/tracks.json" \ -F 'oauth_token=********'

Get better quality from SoundCloud's Waveform.js lib

非 Y 不嫁゛ 提交于 2019-12-04 17:14:43
Currently I'm using Waveform.js ( http://waveformjs.org ) to generate waveforms from SoundCloud tracks. Unfortunately the generated canvas has a very low image quality (especially on Retina): I would like to create Waveform very similar to the Soundcloud one: Do you know how can I improve the quality of an image? Maybe there's a better solution for generating such waveforms? My app is completely client-side, everything is done in the browser, so perfect scenario for me will be: Send waveform_url to the library which can generate canvas / svg /etc. Or get the data from waveform_url by myself