soundcloud

How to I access a SoundCloud public stream?

血红的双手。 提交于 2019-12-12 11:34:11
问题 How do I play a track from a SoundCloud URL, which, for example, I got from the xml response from a query <stream-url>https://api.soundcloud.com/tracks/31164607/stream</stream-url> I should have thought that it would have been as easy as: https://api.soundcloud.com/tracks/31164607/stream&client_id=my_client_id yet I get <error>401 - Unauthorized</error> All I want to do is consume it in a Silverlight MediaElement, so all I need is set some url to the MediaElement's Source property. I've

SoundCloud track.stream_url not working for some of the tracks

被刻印的时光 ゝ 提交于 2019-12-12 08:01:21
问题 I noticed that on some tracks on soundcloud stream_url points to 404 - page not found. The track is set as streamable, but still stream url is not working. Here is an example: http://api.soundcloud.com/tracks/129894766.json?consumer_key=KEY returns streamable: true, embeddable_by: "all" but: stream_url: "http://api.soundcloud.com/tracks/129894766/stream?consumer_key=KEY" is not working. Has anyone experienced this and maybe have some solution? 回答1: The reason the stream URL isn't working for

Soundcloud Stratus Player - Cross-platform compatibility [closed]

久未见 提交于 2019-12-12 05:48:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm using Soundcloud's stratus player on the following page - http://www.naturesoundmap.com/ So far I'm very happy with it's functionality, but I've been getting reports from users that indicate there may be compatibility issues. It's hard to isolate where the problem is exactly, and perhaps it's not the

Player html5 soundcloud

為{幸葍}努か 提交于 2019-12-12 04:46:42
问题 I would like to change flash player SoundCloud to HTML5 player to my site in WordPress. The audios are add in pages. I'm having problems because i cant find a code no user, just a player that work. The flash code: <object height="100%" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=<?=print_field($data,'sound_link') ?>&auto_play=false&player_type=artwork&color=000000"></param> <param name="allowscriptaccess" value="always"></param> <embed

CORS not working at all

时光总嘲笑我的痴心妄想 提交于 2019-12-12 04:38:35
问题 The SDK demo works fine (it doesn't need special CORS stuff since it is on the same domain) When I try to send the request from localhost:8080 this happens So I'm trying to request api.soundcloud.com/tracks - first my browser sends an OPTIONS req to api.soundcloud.com asking if it's okay to call cross-origin. api.soundcloud.com does not return the headers my browser is looking for so my browser throws an error and can't make the request. Am I the only person trying to use the APIs from

Add track to playlist SoundCloud API

浪尽此生 提交于 2019-12-12 04:25:23
问题 In my Windows Phone App, I'm using the following code to add a track to playlist (i.e. a PUT request to playlists/id endpoint) using (HttpClient httpClient = new HttpClient()) { httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(AccessToken); HttpResponseMessage response = await httpClient.PutAsync(endpoint, new StringContent(data)); response.EnsureSuccessStatusCode(); } where "data" is JSON data the form: {"playlist":{"tracks":["TrackId(to be added)"]}} The above

Soundcloud Javascript SDK sound not pausing

梦想与她 提交于 2019-12-12 04:16:52
问题 Using the Soundcloud JavaScript SDK I have successfully been able to grab my tracks and play them. My goal is to allow playing and pausing via clicking on one button (like a play/pause toggle). However, my issue is that when I click on the .SCbtn element, the song plays, and doesn't stop. My conditionals seem to be correct because I can see true and false making it into the console. Not quite sure why SC.sound.pause(); isn't working. var is_playing = false; var trackCont = function(trackNum){

Manipulate soundcloud iframe widget

痴心易碎 提交于 2019-12-12 03:07:25
问题 I'm loading soundcloud into my website using iframes. Is it possible to edit the style of the soundcloud iframe. Example. Set a class of the iframe to visibility : hidden Or is there another way to manipulate this iframe. 回答1: Your iframe is independent of the soundcloud api. You can style you iframe anyway you want e.g check here. You can basically style the iframe inline using the style attribute. If you want to use CSS stylesheet you need to import it into the page using < link > etc. 来源:

SoundCloud API - how to play private sound with HTML5 <audio> tag

不想你离开。 提交于 2019-12-12 01:35:54
问题 I would like to play sound with HTML5 tag. The sourcecode is shown as below: SC.get("/tracks/153068147", {}, function(sound, error) { $('#player').attr('src', sound.stream_url + '?client_id=' + client_id); }); When I set the sound to be public, it works well. But when I set it to be private, it does not work. What is the problem? By the way, I also authenticated my APP with SC.connect before I play it. And the sound is also uploaded with my SoundCloud account. 回答1: you need to replace http to

ERR_FILE_NOT_FOUND observed when SC.oEmbed is Called

余生颓废 提交于 2019-12-12 00:35:11
问题 I wonder to use SC.oEmbed to play sound from SoundCloud .But when I use it, I always get ERR_FILE_NOT_FOUND error. I put my Source Code in Jsfiddle: http://jsfiddle.net/n2sVk/, it works OK. But when I save it to a HTML file and open it with Chrome, the error would be observed. The Source Code is shown as below: <!DOCTYPE html> <html> <head> <title>Test</title> <meta charset="UTF-8"> </head> <body> <script src="http://connect.soundcloud.com/sdk.js"></script> <div id="wrap"></div> <script type=