FAQ Database Discussion Community


Ruby HTTParty soundcloud gem error

ruby,soundcloud,httparty
I was experimenting with the soundcloud gem and suddenly I always get an error with every request I make. For example this following code: require 'soundcloud' client = SoundCloud.new(:client_id => MY_CLIENT_ID) track_url = 'https://soundcloud.com/sohight/sohight-cheevy-money-is-love-out-now' track = client.get('/resolve', :url => track_url) puts track.genre Anyone knows why I get this error? /Users/angel/.rvm/gems/ruby-2.2.0/gems/httparty-0.13.4/lib/httparty/hash_conversions.rb:33:in...

Can you predetermine the colour of a soundcloud oembed player in wordpress

php,wordpress,soundcloud,audio-player,oembed
How can I change the color of the soundcloud player (in wordpress) without having to include the hex colour code, in every instance that I embed a soundcloud iframe into a post in wordpress For example - Instead of the : <iframe src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/104054925&amp;color=ff3366&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false" width="100%" height="166" frameborder="no" scrolling="no"></iframe>...

How does Soundcloud app skip to next track so fast?

ios,api,networking,avaudioplayer,soundcloud
I'm building my first app and it's a Soundcloud client. Right now, everytime a track is selected to play, I have to go on and do a NSURLSessionDataTask fetch to get the binary data, but this takes a long time. And when I skip, to the next track, I have...

How to use SoundCloud API to filter by genres

javascript,html,soundcloud
I'm trying to use the API of SoundCloud without success, most examples and tutorials on the web are not working. For the purpose I used this video tutorial. I wish to create on my website a filter by genres. So first I created an HTML: <!DOCTYPE html> <html> <head> <script...

Playing Soundcloud track with WebAudio

soundcloud,web-audio
I am exploring WebAudio and SoundCloud for a visualization program but can't seem to get past the basic testing stage. Here's the code I used for testing but I can't hear anything. Am I missing something? <script src="http://connect.soundcloud.com/sdk.js"></script> <script> var context = new AudioContext(), audio = new Audio(), source, url...

What is counting on rate limit of soundcloud?

limit,soundcloud,rate
In my application I have a search list of musics and an embedded player. I need refactor some functions, but I can't understand what is the specific count event. What is counting in rate limit by SoundCloud? Search for list song is measured? Play calls? In SoundCloud doc text we...

In the Soundcloud API, is information about a track still available after it's removed due to DMCA infringement?

soundcloud
I'm building an app that utilizes Soundcloud API and we came across a small problem. We archive playlists on our own servers to cut down on the amount of data needed to display tracks. So, for example, a user can create a playlist with tracks from soundcloud but we strip...

How to custom embed Soundcloud track?

html,embed,soundcloud
Is it possible to embed a Soundcloud track with only a custom play and pause button and the title of the song? Look out for some advice. Casper...

Why does this SoundCloud API method not retrieve all tracks?

soundcloud
I'm attempting to retrieve all of my favourited songs from my profile on SoundCloud using the SoundCloud API method /users/{id}/favorites. After registering my application with SoundCloud and retrieving my ClientID, I can successfully retrieve an array of favourited tracks in JSON using a call to http://api.soundcloud.com/users/goodforenergy/favorites?client_id={my-client-id}. Looking at my SoundCloud...

Unity3D, C# and uploading tracks to SoundCloud

android,unity3d,upload,soundcloud
I am working on an app in Unity3D which can upload tracks to SoundCloud. I have been working on this for a while but i can't get it to work. I am using HttpWebRequest for the request to SoundCloud and this works fine on Unity for Windows. But when i...

Get HTTP mp3 stream from every song

json,mp3,soundcloud
I need to get the direct URL from a SoundCloud mp3 file. I normally used the following method: Resolve the track url to get the track id, e.g. using https://soundcloud.com/linkin_park/burn-it-down with http://api.soundcloud.com/resolve.json?url=http://soundcloud.com/your/link/to/the/track&client_id=client_id Then go for the stream_urls with http://api.sndcdn.com/i1/tracks/track_id_here/streams?client_id=client_id In most cases, the "http_128_mp3_url", the URL I need, is returned,...

styles css in embeded souncloud player

css,iframe,styles,embed,soundcloud
I am trying to make a small site I use embed code to display soundcloud music in webpage. however, I want to remove the orange button play and the player down my iframe . I am researching I found that I could do it with css, just hidden buttons ....

SoundCloud Api - How to make (set) playlists favorites?

javascript,php,soundcloud
Is there any way to set playlist favorites in SoundCloud For Track Favorites i am using SC.put('/me/favorites/'+track_id); but its not working in playlist. It seems that "/favorites" only shows tracks and no playlists? Maybe there is another way to check if a playlist was marked as "like", but I did...

Local URL is added

php,iframe,echo,soundcloud
So, I'm trying to do this to echo all my Soundcloud tracks stored in my database (by URL). When the last echo is called, the URL is: /End/public/https://api.soundcloud.com/tracks/121291880&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_rep I don't want the "/End/public/". Why is this happening? In the first echo (echo $musicArray[0]['url'];), the URL is correct (without /End/public). End...

How to embed Soundcloud in HTML?

html,iframe,soundcloud
I want to embed a sound cloud in my html and below is link of the track file. https://soundcloud.com/aviciiofficial/preview-avicii-vs-lenny How to make this display in my webpage like embedding YouTube video?...

SoundManager on 100% HTML5 mode stuck on “stalled”

javascript,html5,soundcloud,samsung-smart-tv,soundmanager2
In my Smart-TV app, I'm using the SoundCloud API, through Cross Domain Request - $.getJSON() etc. The app also uses the SoundManager2 API on a 100% HTML5 mode (no Flash) to load tracks from the .stream_url retrieved from SoundCloud. The problem begins when trying to play the loaded tracks. Say...

Pausing sounds with SoundCloud API

javascript,audio,streaming,soundcloud
I'm fairly new to JS and I'm having trouble getting audio that is currently playing to pause or stop using the SoundCloud JavaScript SDK. I'm using a MEAN stack. In the 'ready' function I initialize the SC player: SC.initialize({ client_id: "my_client_ID", redirect_uri: "http://example.com/callback.html", }); ... $('#trackList table tbody').on('click', 'td a.linkplaytrack',...

Calling a functions return value as a variable - Soundcloud API [duplicate]

javascript,function,soundcloud
This question already has an answer here: How to return the response from an asynchronous call? 7 answers I'm trying to debug in Chrome's console and have created this small function for testing. var hello = function(){ var text = "Hello World"; return text; }; It works as I...

SoundCloud Api redirect confusion and Audio Api Streams

javascript,ajax,cors,soundcloud,web-audio
I am attempting to make a request to the SoundCloud API. Then when I get the response I set the stream_url as the source of an < audio > element. This works: http://matthiasdv.org/beta/ But not always... When you search for 'Bonobo' for example, you can play the first few tracks...

How to Get SoundCloud RSS Download Stats via API?

api,rss,soundcloud
With SoundCloud's recent update showing RSS Downloads as a separate statistic, I am not able to find a way to get this stat via the API. Looking at the HTTP API Reference for Tracks, I can see options for: comment_count download_count playback_count favoritings_count Is there an option to get the...

Getting a users likes in Soundcloud Widget API

iframe,soundcloud
I'm trying to create a widget which tracks and plays tracks a specified user has like. I understand (or atleast think) there is an option to generate a users Fave tracks using the Soundcloud widget API, but can't seem to figure out what the iFrame src should be. Shouldn't either...

Getting soundcloud tracks with php

php,soundcloud
I've found this tutorial saying how to do it. So I have username and got user ID. Now I doing as tutorial says. <?php ini_set("display_errors", "On"); error_reporting(E_ALL ^ E_NOTICE); // build our API URL $url = "http://api.soundcloud.com/resolve.json?" . "url=http://soundcloud.com/" . "name" . "&client_id=id"; // Grab the contents of the URL...

Soundcloud js api. Can't stop playing

javascript,soundcloud,music-player
I'm developing app to play soundcloud traks. I'm using ttwmusicplayer and want to bind soundcloud actions on it's play/pause. So, I'm doing it like this: $("#mainPlayer .jp-play") .off("click") .on("click", function(){ $("#mainPlayer .jp-play").css('display','none'); $("#mainPlayer .jp-pause").css('display','block'); SC.stream('/tracks/208818225', function(sound){ sound.play(); }); }); $("#mainPlayer .jp-pause") .off("click") .on("click", function(){ alert('IT WORKS'); $("#mainPlayer .jp-play").css('display','block'); $("#mainPlayer...

When PUTting to a playlist on Soundcloud's API, the playlist doesn't actually get updated?

soundcloud
When I try to HTTP PUT a SoundCloud playlist through the API, with a data structure: {"tracks": [{"id": 12345}, {"id": 45678}]}, the playlist doesn't get updated. The API returns a 200 response with what was in the playlist, completely ignoring the modifications. What I think might be wrong The SoundCloud...

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

visualization,soundcloud,web-audio
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....

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

javascript,api,stream,soundcloud
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...

How can I get a track search on the basis of title - SoundCloud?

javascript,soundcloud
Basically I want to Stream audio on the basis of song title search. The search results are vague and meaningless : SC.initialize({ client_id: "MY_ID", }); SC.get('/tracks', { title:'welcome to the black parade'}, function(tracks) { console.log(tracks); }); But the results are way too different from the actual song.But the results on...

Youtube/SoundCloud video open in new tab when clicked

javascript,html,youtube,soundcloud
I am trying to add to my Tumblr page a way for when a youtube video or a SoundClouds is clicked, it shall open into another window. I am unable to figure out how to do this. Here is a example of them code I am using for SoundCloud <a...