OnSoundUpdateMeta

From Onset Developer Wiki
Revision as of 22:39, 15 January 2020 by Chloe (talk | contribs) (Added an example, sound events tag and fixed a very minor grammar error.)
OnSoundUpdateMeta

Type: Event
Context: Client
Introduced: v1.0

Description

Called received new metadata 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)

See also