soundcloud

How is SoundCloud embedding an HTML5/JS widget on Facebook?

时光毁灭记忆、已成空白 提交于 2019-12-17 22:32:25
问题 Here's the scenario I'm seeing - You click to post a sound from SoundCloud to Facebook It embeds a player in the post that can either be clicked on to take you to the original item on SoundCloud OR you can click a Play icon to play the sound right in your feed. The player is a Javascript/HTML5 player (which you can see by viewing source) HOWEVER if you take the embedded URL and put it in the Facebook open graph debugger you'll see that it appears to be directing to embed a Flash SWF How is

Soundcloud iframe doesn't work with UIWebView swift

笑着哭i 提交于 2019-12-14 03:44:42
问题 I'm using iframe and 'Widget API' to control the streaming. When i call 'Play(); or 'Pause();' the play button is changing but is not playing audio. @IBOutlet weak var videoWebView: UIWebView! var soundCloudIsLoaded : Bool = false var isPlaying : Bool = false override func viewDidLoad() { super.viewDidLoad() self.videoWebView.isUserInteractionEnabled = true self.videoWebView.allowsInlineMediaPlayback = true var htmlString = "<iframe id=\"sc-widget\" width=\"100%\" height=\"350\" scrolling=\

JS: How to prevent losing session per refresh after logging in in SoundCloud API

牧云@^-^@ 提交于 2019-12-14 02:28:58
问题 I'm making a dashboard and pulling some info from the SoundCloud API. I'm relatively new to this API and I got as far as being able to pull the SoundCloud Widget per track listed. My problem is that everytime I refresh, I get signed out (I think). Is there a way for the session to remain even if the user for example refreshes the page? This is what I have right now: function connectToSoundCloud(){ //INTIALIZE AUTH WITH SC SC.initialize({ client_id: sc_client_id, redirect_uri: sc_redirect_uri

c# iterate through json

浪尽此生 提交于 2019-12-13 21:38:57
问题 Currently I am working on a soundcloud downloader in C#. With the help of the SoundCloud API I get a JSON string of a playlist, which includes a lot of information of the tracks: http://pastebin.com/HfrjqyJE I tried it with: JObject results = JObject.Parse(e.Result); foreach (var result in results["tracks"]) { string streamUrl = (string)result["stream_url"]; string title = (string)result["title"]; } it worked but it needs about 20 secs to iterate through a playlist with only 2 tracks. Is

“Cannot call method 'oEmbed' of null” when embedding Soundcloud player in dynamically generated Div

余生颓废 提交于 2019-12-13 21:38:27
问题 Using the Soundcloud JavaScript API, I want to dynamically generate a page of player widgets using track search results. My code is as follows: <html> <head> <script src="http://connect.soundcloud.com/sdk.js"></script> <script> function makeDivsFromTracks(tracks,SC) { var track; var permUrl; var newDiv; for(var ctr=0;ctr<tracks.length;ctr++) { newDiv=document.createElement("div"); newDiv.id="track"+ctr; track=tracks[ctr]; SC.oEmbed(track.permalink_url,{color:"ff0066"},newDiv); document.body

Sound Cloud returning 401 error

♀尐吖头ヾ 提交于 2019-12-13 21:19:47
问题 Recently I start work with Sound cloud API (PHP) and I decided to use PHP API by https://github.com/mptre/php-soundcloud. But When I am trying to get access token from Sound cloud server by this code: // Get access token try { $accessToken = $soundcloud->accessToken(isset($_GET['code'])); } catch (Services_Soundcloud_Invalid_Http_Response_Code_Exception $e) { exit($e->getMessage()); } The SC returning 401 error after adding below code in my script $curlPath = 'Fullpath\Of\cacert.crt';

OAuth2 login to SoundCloud recently returns Error Domain=NXOAuth2HTTPErrorDomain Code=401 “HTTP Error: 401”

自作多情 提交于 2019-12-13 16:26:18
问题 I am trying to log into my SoundCloud account on an iOS app I develop using the Objective-C SoundCloudAPI framework https://github.com/sangtn/SoundCloudAPI This worked like a charm the last time I used it but by today I am getting the following error message: Error Domain=NXOAuth2HTTPErrorDomain Code=401 "HTTP Error: 401" UserInfo={NSLocalizedDescription=HTTP Error: 401} Using the same credentials (email and psw) grants me access on the web platform and on the SoundCloud iOS app. I cannot

Soundcloud Api Error

依然范特西╮ 提交于 2019-12-13 10:52:27
问题 I was trying to follow a user using soundcloud api in php. But I am getting bellow error when i run the code. Warning : Missing argument 2 for Services_Soundcloud::put(), called in /home/sumithost/public_html/test.php on line 12 and defined in /home/sumithost/public_html/Soundcloud.php on line 636 exception 'Services_Soundcloud_Invalid_Http_Response_Code_Exception' with message 'The requested URL responded with HTTP code 404 .' in /home/sumithost/public_html/Soundcloud.php:941 Stack trace: #0

SoundCloud: how to stop playing when hash change

…衆ロ難τιáo~ 提交于 2019-12-13 07:14:19
问题 I'm using ajax page switching method with SoundCloud script. How to stop playing music when the user leaves the page with SoundCloud container? I've found these stokes: // stop all players, might be useful, before replacing the player dynamically $.scPlayer.stopAll = function() { $('.sc-player.playing a.sc-pause').click(); }; Currently I call initialization $(".sc-player").scPlayer(); inside .load function, but where do I need the put the code which will stop playing audio before any page

JavaScript Soundcloud API integration - cannot read property 'uri' of undefined

我们两清 提交于 2019-12-13 06:03:46
问题 I'm trying to copy the code from this video. It's old so I changed the url for the SDK. Here's the JS code: function playSomeSound(genre){ SC.get('/tracks', { genres: genre, bpm: { from: 40 } }, function(tracks){ var random = Math.floor(Math.random() * 49); SC.oEmbed(tracks[random].uri, { auto_play: true}, document.getElementByID('target')); }); } window.onload = function(){ SC.initialize({ client_id: '1166055b8d5ca23b9c265bf8846d1102' }); var menuLinks = document.getElementsByClassName(