Documentation
¶
Overview ¶
Package controlslist defines the ControlsList type and its predefined values.
Controls which browser-native media controls to show or hide on video and audio elements. Multiple values can be specified to hide multiple controls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NoDownload Hide the download button from the browser's native media controls. // Prevents users from downloading the media directly from the player. NoDownload = ControlsList("nodownload") // NoFullscreen Hide the fullscreen button from the browser's native media controls. // Useful when fullscreen viewing is not desired or appropriate. NoFullscreen = ControlsList("nofullscreen") // NoRemotePlayback Hide remote playback options (casting) from the browser's native media controls. // Prevents casting to devices like Chromecast or AirPlay from the player UI. NoRemotePlayback = ControlsList("noremoteplayback") )
Variables for ControlsList values
Functions ¶
This section is empty.
Types ¶
type ControlsList ¶
type ControlsList []byte
ControlsList is a typed value for the HTML controlslist attribute.
Controls which browser-native media controls to show or hide on video and audio elements. Multiple values can be specified to hide multiple controls.
func Custom ¶
func Custom(value string) ControlsList
Custom allows setting a custom ControlsList value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.
Click to show internal directories.
Click to hide internal directories.