OnSoundUpdateMeta: Difference between revisions
From Onset Developer Wiki
Added an example, sound events tag and fixed a very minor grammar error. |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Event|Client|1.0}} | {{Info|Event|Client|1.0}} | ||
{{FuncDescription|Called | {{FuncDescription|Called when new metadata was received from a network stream. (.pls playlist streams) This can be the name of the station, song, and artist.}} | ||
{{FuncSyntax|OnSoundUpdateMeta(sound, meta)}} | {{FuncSyntax|OnSoundUpdateMeta(sound, meta)}} |
Latest revision as of 10:45, 7 July 2020
Description
Called when new metadata was received from a network stream. (.pls playlist streams) This can be the name of the station, song, and artist.
Syntax
OnSoundUpdateMeta(sound, meta)
Parameters
- sound
The sound identifier. - meta
The metadata received.
Example
AddEvent("OnSoundUpdateMeta", function(sound, meta)
AddPlayerChat("Sound ID " .. sound .. " is now playing: " .. meta .. "!")
end)