![soundcloud bot browser soundcloud bot browser](https://i1.sndcdn.com/artworks-Qs3jPo8dNO8CKqR2-0zyq6w-t500x500.jpg)
![soundcloud bot browser soundcloud bot browser](https://i1.sndcdn.com/artworks-000296840370-2hr8fs-t500x500.jpg)
![soundcloud bot browser soundcloud bot browser](https://www.ts3musicbot.net/images/screenshots/youtube_soundcloud_browser.jpg)
SOUNDCLOUD BOT BROWSER SOFTWARE
on('event', handler) off('event', handler) unbindAll()Ĭopyright (c) 2015 Dmitri Voronianski is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The list of supported events can be accessed here. SoundCloudAudio provides shortcuts to subscribe or unsubscribe handler functions on native audio events. Shows the current state of the player, returns false or source of a currently streaming track. SoundCloud track duration converted into seconds in order to be in sync with audio.currentTime.
SOUNDCLOUD BOT BROWSER FULL
There are several useful properties like currentTime (in seconds) or events you may want to listen with addEventListener (the full list of of them at HTMLMediaElement). Set the progress of the song to a specific number of seconds. setVolume(volumePercentage)Īdjust the volume with a number between 0 and 1, 0 being not audible and 1 being full volume. Just pass the DOM event that you received on progress click and all necessary computations will be done automagically. It changes audio.currentTime with regarding to the progress position. Helper method for integrating with HTML element and its' polyfills. Return to the previous track in playlist (returns a Promise). options.loop - boolean, if set to true will start at the beginning of a playlist after the last track.Skip to the next track in playlist to play. Stop playing audio and rewind it to start. 'auto' - indicates that the whole audio file could be downloaded, even if the user is not expected to use it.'metadata' - indicates that only audio metadata (e.g.'none' - indicates that the audio should not be preloaded.preloadType - this attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience.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 - ).} ) 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.