![]() 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 OR if you need to load a SoundCloud track and resolve it's data 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. Wrapper around HTML5 and SoundCloud tracks and playlists APIs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |