soundcloud

How to get Soundcloud embed code by soundcloud.com url

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been researching for hours with no luck to get it worked. Basically I have a cms in which users can put soundcloud url like this " https://soundcloud.com/cade-turner/cade-turner-symphony-of-light ", then the page can show an embedded iframe. I have red the api docs for a while but couldn't find anything relavant. This post here have talked but i just didn't quite understand the answers and I checked oEmbed and oEmbed reference but couldn't find proper example. Any one has any more hints? Edit: Thanks to Jacob's answer, I finally

Soundcloud API is returning 403 on some tracks

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Soundclouds API is returning 403 on some tracks for me. I have tried playing with the raw http endpoints and also the soundcloud api wrapper for python, both have the issue. https://api.soundcloud.com/tracks/251164884.json?client_id=CLIENT_ID The above one returns a 403 error while below one works, using same CLIENT_ID obviously https://api.soundcloud.com/tracks/197355235.json?client_id=CLIENT_ID Using the library wrapper I get. requests.exceptions.HTTPError: 403 Client Error: Forbidden import soundcloud client = soundcloud.Client(client_id

Soundcloud API - Upload image from external URL for track artwork, using SC.recordupload

匿名 (未验证) 提交于 2019-12-03 01:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I upload track artwork using the SC.recordUpload function, when the location of the image is an external URL? My erroneous code: imageObj = new Image(); imageObj.src = "http://maps.googleapis.com/maps/api/staticmap?center=51.4993603,-0.1074693&zoom=12&size=200x200&maptype=roadmap&sensor=false"; ....(connection code and track recording).... SC.recordUpload({ track: { title: "New track", description: "Track description", sharing: "public", artwork_data: imageObj } }, function(track){ //Track uploaded! $("#uploadStatus").html("Track

Soundcloud 500x500 artwork by default

醉酒当歌 提交于 2019-12-03 01:02:53
if($song->artwork_url != null) { $song_artwork = $song->artwork_url; } else { $song_artwork = 'img/no_art.png'; } By default soundcloud pulls -large (which is 100x100) How do i make it pull (t500x500) so i can have a higher res image? Just replace large.jpg by t500x500.jpg in the filename, like so: $song_artwork = str_replace('large.jpg', 't500x500.jpg', $song->artwork_url); In fact, they support a number of different formats for different requests: t500x500: 500px×500px crop: 400px×400px t300x300: 300px×300px large: 100px×100px (default) t67x67: 67px×67px (only on artworks) badge: 47px×47px

502 Error When Searching on SoundCloud Playlists

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: import soundcloud client = soundcloud . Client ( client_id = 'mykey' ) page_size = 10 tracks = client . get ( '/tracks' , q = 'lorde' , limit = page_size ) users = client . get ( '/users' , q = 'lorde' , limit = page_size ) sets = client . get ( '/playlists' , q = 'lorde' , limit = page_size ) In the above extract of Python code, whilst tracks and users works perfectly fine, the last line returns the following error. Traceback ( most recent call last ): File "<stdin>" , line 1 , in <module> File "soundcloud/client.py" , line 130 ,

Soundcloud API - Extracting tracks reposted by a user

让人想犯罪 __ 提交于 2019-12-02 21:00:41
As reposts where introduced in the new soundcloud website, is it also possible to extract tracks reposted by a given user through the API ? Thanks in advance for your help The API endpoints which give you reposts are not yet part of the public API. The only reason for this is that we haven't yet fully decided on a format and so on -- basically, once it's part of the documented API, then we have a complete responsibility never to break that backwards compatibility, and we can't quite promise that yet. Replace User Id, limit and offset with what you need: Updated: https://api-v2.soundcloud.com

How to use Soundcloud api to get stream into html5 audio player?

北城余情 提交于 2019-12-02 19:49:00
I've just started learning javascript and as my first attempt I'd like to create custom audio player which uses soundcloud's api as a source for music. So far this is what I got set up: <!DOCTYPE html> <html> <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="http://connect.soundcloud.com/sdk.js"></script> <script> window.onload = function() { SC.initialize({ client_id: '10e27db0dacd00954d7160b4c092a6e2' //Demo ID }); SC.stream("/tracks/75868018", function(sound){ $("audio-test").attr("src", sound.uri); }); }; </script> </head> <body> <audio

How to get proper soundcloud url for embedding from a standard url?

梦想与她 提交于 2019-12-02 19:40:33
So right now I can grab the url from already embedded soundcloud files in embed or iframe tags and use those urls on another page and display it in fancybox. Is there a way to get the right url or display in fancybox if a user offers a typical share url such as http://soundcloud.com/song-b/song-please or http://snd.sc/yp6VMo ? I tried looking at the api documentation but I couldn't really find what I was looking for. Lincoln B He is trying to get html to create a Soundcloud widget, not get the API url for a track. The oEmbed method "will serve the widget embed code for any SoundCloud URL

How to get track ID from URL using the SoundCloud API

最后都变了- 提交于 2019-12-02 18:21:54
How can I get a track ID from a track URL using the SoundCloud API? You didn't specify a language in your question, so I'm just going to provide a high-level answer. Use the resolve endpoint. I'm using this URL as an example: https://soundcloud.com/msmrsounds/ms-mr-hurricane-chvrches-remix HTTP GET: https://api.soundcloud.com/resolve.json?url=https%3A%2F%2Fsoundcloud.com%2Fmsmrsounds%2Fms-mr-hurricane-chvrches-remix&client_id=[your_client_id] The resulting JSON: { "status": "302 - Found", "location": "https://api.soundcloud.com/tracks/147986343.json?client_id=[YOUR client_id]" } That numerical

How is soundcloud player programmed?

六月ゝ 毕业季﹏ 提交于 2019-12-02 18:12:07
This may be too broad a question, but how is soundcloud actually programmed? To be more specific, What language was used to program it? How does it display the frequency data? If user uploads a file in a format different from MP3, is it converted MP3 or gets played as is? If former, how does the conversion work? How does it "graphically" appear on a browser as it does? Is it also HTML 5 thing which I don't know anything about? I'm a big fan of the soundcloud and couldn't stop wondering how all of these work! Please help me out :) SoundCloud developer here, The API and the current website are