soundcloud

Get a list of users followed by a particular user - SoundCloud API

白昼怎懂夜的黑 提交于 2019-12-13 05:49:22
问题 Looking to retrieve a list of users followed by a particular user. Not sure what I'm doing wrong here but any help would be much appreciated. My code in jsfiddle:http://jsfiddle.net/jchan11/3dbvagz5/ var followingsList = [];//array to store users you follow var USER = "the_chanman"; SC.get("/users/"+USER+"/followings",{limit:10}, function(users){ for(var i = 0; i < users.length; i++){ //store users in followsList array followingsList.push(users[i].username); } }); 回答1: Lookslike you need to

Get ALL comments from Soundcloud track

半城伤御伤魂 提交于 2019-12-13 05:06:14
问题 How can I get all the comments from a particular track on soundcloud? My script only returns 200, while the soundcloud page for the particular track states that there are currently 400+ comments. Is there a limit in the API? Thanks! 回答1: Limit per call is 200. Implement pagination. https://developers.soundcloud.com/docs#pagination Here is an example to get 400 comments using JS, JQuery + SC SDK. SC.get('/tracks/' + track.id + '/comments',{ limit: page_size }, function(comments) { for (var i =

Play playlist or track by permalink not trackid

狂风中的少年 提交于 2019-12-13 03:24:19
问题 I have an embedded player that works by trackId but: I but I am trying to get non-technical users to embed the tracks or playlists into pages. I sometimes need to regenerate the playlists For both these reasons it is inconvenient that the player needs trackId. Is there a way I can play off the permalink? Thanks, Martin. PS. My current iframe code looks like this: src="https://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F$paramPlaylistID" This iFrame code (from

Cannot analyse Soundcloud's streaming audio because of the lack of CORS policy

萝らか妹 提交于 2019-12-13 02:38:53
问题 I am working on this visualizer http://trif.it that still works well on Chrome Stable (41.x) but stopped working in Chrome Dev, Beta and Canary (42.x onwards) because of a change in how Chrome (and Firefox before that) handles audio sources to be analysed. Here is the code that is problematic. It should work well until you remove the comments on the last portion that is handling the audio routing. var audioElement = new Audio(); var clientId = "xxxxx"; var oReq = new XMLHttpRequest(); //oReq

Auto_html says block not supplied

北慕城南 提交于 2019-12-13 02:23:10
问题 I have a website that allows users to post links. I am trying to get the soundcloud links to embed the mediafile thus I am attempting to use AutoHtml Gem. I did gem install Autohtml, put it in my gemfile and in config/application.rb and ran bundle install. Why isn't Auto_html() working. GEMFILE source 'https://rubygems.org' gem 'rails', '3.2.8' gem 'bootstrap-sass', '2.0.4' gem 'bcrypt-ruby', '3.0.1' gem 'faker', '1.0.1' gem 'will_paginate', '3.0.3' gem 'bootstrap-will_paginate', '0.0.6' gem

Migrating from OAuth1 to OAuth2

时光总嘲笑我的痴心妄想 提交于 2019-12-12 23:17:25
问题 We have an existing application on SoundCloud that was created some time ago and set up to use OAuth1. Recently we needed to expand SoundCloud-related functionality and, because of some problems with the old library, had to upgrade to new cocoa-api-wrapper library that uses OAuth2 client. The problem now is that we cannot access our application with its key/secret because of the different version of OAuth. While it is possible to set up new application and get new key/secret pair, we wouldn't

jQuery <audio> Plugin Doesn't work in Firefox and Opera

本小妞迷上赌 提交于 2019-12-12 20:27:27
问题 I was working with a plugin for custom <audio> player and everything was fine. I was working in Safari browser on Mac OSX 10.8.2 , Once I decided to test project in other browsers things got very strange. In a nutshell, plugin is supposed to find <audio> tags in a page and than change them to a different custom markup. Works fine in safari, but doesn't seem to work in firefox and opera Firefox and Opera have following issue, there is a part in a plugin which, in case if audio source is

How to send an event from a tab/window to another with jQuery/Javascript

纵饮孤独 提交于 2019-12-12 20:10:23
问题 How does soundcloud do to stop current playing sound when another soundcloud window or tab is playing ? I'm looking for a way to send an event from a tab/window to another one, without using Child Window design. I tried to use custom Cookie event but it did not affect other tabs. 回答1: Use localStorage. Did you know that localStorage fires an event? More specifically, it fires an event whenever an item is added, modified, or removed in another browsing context. Effectively, this means that

Bug: SoundCloud OAuth2 connection will fail if Redirect URI includes “&” character

走远了吗. 提交于 2019-12-12 18:41:24
问题 I'm getting an error while connecting to Sound API trought OAuth2. This is the connection link I use: https://soundcloud.com/connect?client_id=27e07408838149bc81b98928b76468f9&redirect_uri=http%3A%2F%2Fbeta.mydomain.com%2Fapd%2F%3Fmodule%3Dsoundcloud%26action%3Dreturn&response_type=code&consumer_key=28e07409898149a981b98928b76468f9 By clicking it I get redirected to: http://beta.mydomain.com/apd/?module=soundcloud&action=return&error=redirect_uri_mismatch&error_description=The+redirection+URI

SoundCloud SDK / API callback events not firing

China☆狼群 提交于 2019-12-12 17:23:52
问题 Here's a simple example that I believe should be working per the docs. The stream plays, but the callbacks don't fire. Am I making a mistake, or is there a bug somewhere between the SDK / API / SoundManager? <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <h1>Sound Cloud API callback test</h1> <script src="//connect.soundcloud.com/sdk-2.0.0.js"></script> <script type="text/javascript"> SC.initialize({ client_id: "YOUR_CLIENT_ID" }); SC.stream( '