ElementsMedia & visuals
AddDiscPlayer
Adds a disc-style audio player connected to a playlist or media controller.
AddDiscPlayer
What it does
Adds a disc-style audio player connected to a playlist or media controller.
When to use it
Use it when you want music playback controls with a visual spinning-disc presentation.
XLQPGen1:AddDiscPlayer(Config)
local DiscPlayer = Library:AddDiscPlayer({
Name = "Now Playing",
MediaPlayer = MediaPlayer,
SpinSpeed = 110,
Volume = 0.5,
Loop = true,
AutoPlay = false,
Position = UDim2.new(0, 20, 1, -116),
Playlist = {
{Name = "Chill Track", SoundId = "rbxassetid://1843529631", Image = "rbxassetid://8834748103"},
{Name = "Action Track", SoundId = "rbxassetid://9048375035", Image = "rbxassetid://8834748103"},
{Name = "Soft Loop", SoundId = "rbxassetid://1837467282", Image = "rbxassetid://8834748103"}
}
})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.