soundcloud

Handle popups/tabs in SFSafariViewController

一个人想着一个人 提交于 2019-12-10 15:57:50
问题 I'm implementing a SoundCloud login flow in my app. The app opens https://soundcloud.com/connect in an SFSafariViewController with a redirect_uri that uses my app's custom URL scheme to receive the response. It works fine for direct SoundCloud logins, but fails when trying to use their "Sign in with Google" button. In Safari, that button opens a new tab (popup on desktop) with a Google sign-in page, which then communicates back to the SoundCloud tab via postMessage . This login flow works

Soundcloud API not returning all tracks from playlist through Python

纵然是瞬间 提交于 2019-12-10 15:27:05
问题 I recently started to use the Soundcloud API to develop a simple app which saves data on playlists. However, it seems to me that not all tracks from playlists are being returned. I'm using the following code: import soundcloud, shelve, time client = soundcloud.Client(client_id=CLIENT_ID, client_secret=CLIENT_SECRET, username=E-MAIL, password=PASSWORD) playlists = client.get('/users/24196709/playlists', limit=1) tracknames = [] trackids= [] for pl in playlists: for track in pl.tracks: print

SoundCloud API: Tweeting on upload and disable comments

有些话、适合烂在心里 提交于 2019-12-10 12:07:51
问题 The following PHP code uploads a new track to SoundCloud successfully, but the tweet is not sent. Is there something I need to have in there as well in order to do this? $track = $soundcloud->post('tracks', array( 'track[asset_data]' => '@audio.mp3', 'track[title]' => "my audio", 'track[description]' => "Updated: " . date('l jS F Y h:i:s A'), 'track[sharing]' => 'public', 'track[shared_to][connections][][id]' => '123', 'track[sharing_note]' => 'Have a listen to' )); Also I'd like to be able

Get better quality from SoundCloud's Waveform.js lib

半世苍凉 提交于 2019-12-09 23:02:39
问题 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

Safari 6.1 won't play audio from embedded Soundcloud widget

こ雲淡風輕ζ 提交于 2019-12-09 06:32:06
问题 I have embedded the Soundcloud widget on my website here: http://www.jackcarnoldmusic.co.uk/music/ …however, on Safari 6.1 (the latest version), no audio plays. There is no error returned, and the time counter and play cursor move, but no sound comes out. Same page loaded in other browsers, including IOS7, work fine. What is it that Safari 6.1 is doing to stop the audio, and how do I get around it? Thanks 回答1: I solved this same problem as follows: Safari - Preferences - Advanced - unchecked

Getting a 404 page for the stream_url. All permissions are set

只愿长相守 提交于 2019-12-09 01:21:24
问题 Getting the track data with GET yields the normal results. But, the stream URL (with appended client-id) doesn't work. Here are the important ones: <sharing>public</sharing> <streamable type="boolean">true</streamable> <stream-url>http://api.soundcloud.com/tracks/112288415/stream</stream-url> I'm at a loss now, because everything should be good to go, and play with SC.stream() . 回答1: I've found the issue in my particular case. Our client had some arrangement with Soundcloud that fell outside

SoundCloud API 403s on Some Tracks

99封情书 提交于 2019-12-08 19:08:59
问题 I've had an application that embeds soundcloud links as valid players using the soundcloud API for awhile now, I recently noticed a moderate volume of 403 Unauthorized errors returning from track lookups ( api.soundcloud.com/tracks/[TRACK NO].json?client_id=[CLIENT ID] ). The track I am testing with is https://soundcloud.com/crystal-castles/deicide, with a track id of 212943992. I went to the URL in my browser and got the correct json returning, tried in incognito, 403 . I cleared my

How to get each track of a playlist with the Soundcloud API?

一个人想着一个人 提交于 2019-12-08 14:18:04
问题 I am working with the Soundcloud API to create a custom playlist (another look than the original Soundcloud player). See image below. I am develop a website for an artist. With the API of Soundcloud I want to import his music from Soundcloud to the website. There are different tabs that should represents all albums - you can see this on the picture - that are uploaded in the SC database. This I have done with the following code: SC.get('/users/' + USER + '/playlists', function(playlists) { $

Soundcloud authentication/connection javascript issue

做~自己de王妃 提交于 2019-12-08 13:25:00
问题 <script src="http://connect.soundcloud.com/sdk.js"></script> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script> // initialize client with app credentials SC.initialize({ client_id: 'bea6b4a2c1108a4cfa99f0d40966108a', redirect_uri: 'http://www.samplewars.com/' }); // initiate auth popup SC.connect(function() { SC.get('/me', function(me) { alert('Hello, ' + me.username); }); }); </script> Unsafe JavaScript attempt to access frame with URL http://samplewars.com

SoundCloud: play button

醉酒当歌 提交于 2019-12-08 11:46:23
问题 I just want a play and stop button to substitute the original ones in SoundCloud. I followed the "Widget API" : http://developers.soundcloud.com/docs/api/html5-widget# But it doen't work. I think I don't understand very well the SoundCloud instructions to do that. I have it here playing: http://jsfiddle.net/wBTCh/1/ HTML: <script type="text/javascript" src="http://w.soundcloud.com/player/api.js"></script> <iframe id="so" width="100%" height="160" scrolling="no" src="http://w.soundcloud.com