XLQP Gen1
ElementsMedia & visuals

AddMediaPlayer

Adds audio playback with playlists, looping, pitch, volume, and optional visualization.

AddMediaPlayer

What it does

Adds audio playback with playlists, looping, pitch, volume, and optional visualization.

When to use it

Use it for music players, sound previews, or any interface that manages several audio tracks.

ElementFunction:AddMediaPlayer(MediaPlayerConfig)

local Result = Section:AddMediaPlayer({
    Name = "Example",
    Default = false,
    Callback = function(value)
        print(value)
    end,
})

Behavior and return value

Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.

Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.