- Documentation
- Client functions
- getSoundMetaTags
Function
getSoundMetaTags
Returns a table with tags of an internet stream: stream_title (the current song title from ICY radio or an empty string).
Syntax
table getSoundMetaTags(sound theSound)Arguments
theSoundsound- The sound.
Differences from MTA:SA
- These MTA:SA arguments are not here:
string format = ""
In MTA:SA
getSoundMetaTags(sound theSound, string format = "")Returns
A table of tags or false.
Example
local tags = getSoundMetaTags(radio)
if tags and tags.stream_title ~= "" then outputChatBox("Teraz gra: " .. tags.stream_title) end
See also
playSoundPlays an MP3 or WAV file from a resource or an internet stream (http:///https://, MP3 and AAC, including radio) with no position in the world (it sounds the same everywhere). A file must be listed inmeta.xmlas a<file>. TheonClientSoundStreamevent reports the result of connecting to an address.onClientSoundStreamThe result of connecting a sound to anhttp(s)://address (playSound/playSound3D).trueafter the first decoded samples;falseafter an error and one silent reconnect attempt.