controlslist

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL