soundcloud

How to use Oauth properly

老子叫甜甜 提交于 2019-12-04 16:44:22
I haven't made much progress, so rather then look for an answer to the error stated in my original question, I think my problem would best be solved by some overall instructions on how to use Oauth properly. Please look below to question reformulated. ORIGINAL QUESTION I'm using the cocoa-wrapper api for soundcloud on my iPhone app. I'm trying to post with the code below, but get an error 422. I believe it has to do with the string @"x-myapplicationurlscheme://connect" , but the url's given to me by soundcloud look like this: https://soundcloud.com/connect https://api.soundcloud.com/oauth2

Streaming private tracks from Soundcloud's API using a Custom Player

扶醉桌前 提交于 2019-12-04 16:09:18
So I know there's plenty of SoundCloud documentation on creating custom players -- as well as streaming private sounds with their own player. But I can't find a definitive answer to: Can I stream private tracks through my own custom player using the API -- but WITHOUT requiring any SoundCloud login authentication? -- Or in bullet form, I want to know if i can: stream Soundcloud hosted tracks these tracks must be private and NOT publicly available on SoundCloud the player must be completely of our own design no SoundCloud login is required for anyone to listen to these tracks -- I realize this

How can I get audio to play when MediaElementAudioSource outputs zeroes, but CORS is no longer an issue?

孤者浪人 提交于 2019-12-04 14:29:27
问题 I am attempting to implement <audio> into a THREE.js scene and I am having some trouble with the audio playback. In my array that I am logging out to the console , All of the output is "0". I have accounted for the CORS issue by placing this: audio.crossOrigin = "anonymous" after the audio.play(); initialization, but to no avail has this helped. Any ideas would be appreciated. Oh, I have also tested this with a server, so that's not the issue. Here is a link to the repo. Here is the jsbin.

Soundcloud custom player add and play song dynamically

大城市里の小女人 提交于 2019-12-04 11:13:14
I am using soundcloud custom player to create a player which can play all the songs on my site. This works pretty good when i just place static url of any track or a post. But what i want is to add the song to the list dynamically. I have done lots of research but couldn't get it to work. What i want is there would be multiple players through out the site. kind of( http://soundcloud.com ) and there would a main player on the top(like soundcloud) which would play around 100 latest songs on site and there would be a smaller player clicking on which will just append that song to the list and

Playing a SoundCloud file in IOS app

帅比萌擦擦* 提交于 2019-12-04 09:53:27
问题 Using the quick start guide provided would like to play a SoundCloud track within IOS app. The code provided to play the stream is here: SCAccount *account = [SCSoundCloud account]; [SCRequest performMethod:SCRequestMethodGET onResource:[NSURL URLWithString:audioFile] usingParameters:nil withAccount:account sendingProgressHandler:nil responseHandler:^(NSURLResponse *response, NSData *data, NSError *error) { NSError *playerError; audioPlayer = [[AVAudioPlayer alloc] initWithData:data error:

Search by geo filter with soundcloud api

梦想的初衷 提交于 2019-12-04 09:22:05
When attempting to search for tracks based on 'geo' filter I always get back zero results. According to the documentation you can use ***** as a wildcard to search lat/lon ranges that exist in the 'tag-list' of each track in the server response. And we use the 'tags' filter when issuing our POST request. For example HttpResponse response = api.get("/tracks?tags=geo:lat%3D52.0*", null); returns zero results. I have also tried omitting the 'geo:' namespace reference, tried all sorts of variations of the lat/lon string for example 'lat=52.0' 'geo:lat=52.0*' . Tried both urlencoded and non

Soundcloud: How do I know the sound cloud track ID right away after uploading a track?

断了今生、忘了曾经 提交于 2019-12-04 07:05:41
http://developers.soundcloud.com/docs/api When I look at the API docs, I see SC.stream("/tracks/293", function(sound){ sound.play(); }); When I look at the track I uploaded, it only provides me the permalink. How do I get the track ID from the website? Do I always have to do a /resolve to get the ID? This is probably more manual steps than /resolve, but it is "from the website." The sound id also appears in the embed code when you go to the sound and click "Share". For example, if you go to a sound page, e.g.: https://soundcloud.com/lowcountrykingdom/another-ordinary-day Then click "Share",

Get Soundcloud URL for a track using only its ID

狂风中的少年 提交于 2019-12-04 04:11:34
问题 I've inherited a database of Soundcloud IDs and would like to build a page linking to each track on Soundcloud. Is it possible to link to a track on the Soundcloud website using only its ID e.g. http://www.soundcloud.com/tracks/{trackId} The website seems to use the format: http://www.soundcloud.com/{user}/{trackname} but I don't have either of those. 回答1: You can scrape it from the "widget" URL https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{trackId} contains a link

SWFobject in a Chrome Extension - API Unavaiable

蓝咒 提交于 2019-12-04 04:01:42
Hi! I'm building a Chrome extension, in which I need to embed a SWFobject in the background page. Everything works, except the JavaScript controls for the SWFobject and the eventListeners. My guess is that it has something to do with the cross-domain policies, because while testing the page on a webserver everything worked fine. Anyway, here's a snippet: In the main page: var playerView = chrome.extension.getBackgroundPage(); $('#playerPause').click(function(){ playerView.playerPause(); }); In the background: function playerPause() { if (postData[nowPlaying].provider == 'youtube' ) { player

soundcloud's 2.0 sdk works but 3.0 does not as of Oct 29th, 2015

好久不见. 提交于 2019-12-04 01:42:36
问题 I have a website, http://www.vertexshaderart.com, that was working fine until today. Suddenly, in Safari only, the XHR request initiated by calling SC.get("/resolve", { url: someUrl } ...) was failing. I checked a friend's webapp what was still working. The only difference was he's using the 2.0 sdk where as I was using the 3.0 sdk. I switched to the 2.0 sdk and things started working again. Checking the headers sent the 3.0 sdk sends http://api.soundcloud.com/resolve?url=someUrl&client_id=??