OnSoundUpdateMeta

From Onset Developer Wiki
Revision as of 10:45, 7 July 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
OnSoundUpdateMeta

Type: Event
Context: Client
Introduced: v1.0

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)

See also