media

package
v1.7.3-0...-caeaf44 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Control

func Control(action MediaAction) error

Control sends a media control command

Types

type MediaAction

type MediaAction string

MediaAction represents the type of media control action

const (
	// MediaActionPlay represents the play action
	MediaActionPlay MediaAction = "PLAY"
	// MediaActionPause represents the pause action
	MediaActionPause MediaAction = "PAUSE"
	// MediaActionNext represents the next track action
	MediaActionNext MediaAction = "NEXT"
	// MediaActionPrevious represents the previous track action
	MediaActionPrevious MediaAction = "PREVIOUS"
	// MediaActionStop represents the stop action
	MediaActionStop MediaAction = "STOP"
	// MediaActionVolumeUp represents the volume up action
	MediaActionVolumeUp MediaAction = "VOLUME_UP"
	// MediaActionVolumeDown represents the volume down action
	MediaActionVolumeDown MediaAction = "VOLUME_DOWN"
	// MediaActionMute represents the mute action
	MediaActionMute MediaAction = "MUTE"
)

Jump to

Keyboard shortcuts

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