mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 23:04:57 +00:00
16 lines
561 B
Lua
16 lines
561 B
Lua
--- Stream player controls configuration
|
|
---@param show_play? boolean Show play button (default true)
|
|
---@param show_volume? boolean Show volume slider (default true)
|
|
---@param show_fullscreen? boolean Show fullscreen button (default true)
|
|
---@return PlayerControlsConfig Controls configuration
|
|
local function controls(show_play, show_volume, show_fullscreen)
|
|
return {
|
|
type = "player_controls",
|
|
showPlay = show_play ~= false,
|
|
showVolume = show_volume ~= false,
|
|
showFullscreen = show_fullscreen ~= false
|
|
}
|
|
end
|
|
|
|
return controls
|