Shared
These are shared exports
Create Sound Id
local soundId = exports['mx-surround']:createUniqueId()Returns
string
Get Info From Url
You can get information such as thumbnail, avatar and song url with this export.
local info = exports['mx-surround']:getInfoFromUrl(url)Parameters
url:
string
Returns
Success
title: string; artist: string; thumbnail: string
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
Was this helpful?