Shared
These are shared exports
Prepare
For Youtube, Spotify and Soundcloud this must be used once. If not, the song will not play.
It only needs to be called 1 time, which makes the link ready. Calling it more than once will result in an error
It's not necessary to prepare for custom audio links or local sounds
Parameters
url:
string
Returns
Success
Error
Create Sound Id
Returns
string
Get Info From Url
You can get information such as thumbnail, avatar and song url with this export.
Parameters
url:
string
Returns
Success
Error
false
Search Track
With this export you can search for tracks by song name. This will also return information as with getInfoFromUrl
Parameters
query:
string
Returns
Success
Error
Search Tracks (Playlist, album)
With this export you can get album and playlist information. It returns exactly the same information as searchTrack
. However it's an array. Its not supports the soundcloud
Parameters
query:
string
Returns
Same as
searchTrack
Last updated