hwatravels.blogg.se

Soundcloud download not working api
Soundcloud download not working api








soundcloud download not working api

aylistIndex - number that specifies the position of the track to play in resolved SoundCloud playlist's tracks array.SoundCloud track's stream_url), if it's passed it will be the main playing source. options.streamUrl - any audio streaming url string (e.g.Returns a Promise and accepts options object: Start playing track if it's not playing right now. Once data will be resolved without errors, callback function will receive it as plain object as the only argument. Pass original track's or playlist's url as a first argument. ) or you need track's metadata then this method is for you. If you don't have SoundCloud stream_url (e.g. second argument, custom API url string, is also optional but it allows you to use SoundCloud API proxy to not expose your client ids in the browser.first argument, client id string, is optional but it's needed if you plan to use SoundCloud API directly (you can get it here - ).ScPlayer.resolve('', function(playlist) ) API new SoundCloudAudio('YOUR_CLIENT_ID', 'YOUR_CUSTOM_API_URL')Ĭreate an instance of SoundCloudAudio, internally uses HTML5 element which is available under audio property. OR a SoundCloud playlist and resolve it's data

soundcloud download not working api soundcloud download not working api

OR if you need to load a SoundCloud track and resolve it's data

soundcloud download not working api

OR if you want to play a NON-SoundCloud audio if you have a SoundCloud api stream url you can just play it like that clientId is optional but without it you cannot play tracks directly from SoundCloud APIĬonst scPlayer = new SoundCloudAudio('YOUR_CLIENT_ID') Install npm install soundcloud-audio -save Usage const SoundCloudAudio = require('soundcloud-audio') It could be treated as a small replacement for official SoundCloud SDK or as an independent browser audio library. If (0 = $sound.find(".sc-button-download").Wrapper around HTML5 and SoundCloud tracks and playlists APIs. Title: "Download this sound (" + tesToMB(data.original_content_size) + ")",ĭownload:$sound.find(".soundTitle_title").first().text()+'.mp3' $buttonGroup = $($sound.find(".sound_soundActions. ( function ( window ), data.stream_url + ".mp3")










Soundcloud download not working api