OnSoundUpdateMeta

From Onset Developer Wiki
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