mpv

package
v0.8.14 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCtxCancel         = errors.New("context canceled")
	ErrSocketFileTimeout = errors.New("mpv socket file timeout")
	ErrNoMetadata        = errors.New("no metadata")
)

Functions

func GetBaseCmd

func GetBaseCmd() string

Types

type MpvSocket

type MpvSocket struct {
	// contains filtered or unexported fields
}

func NewMPVSocket

func NewMPVSocket(ctx context.Context) (*MpvSocket, error)

func (*MpvSocket) Close

func (mpv *MpvSocket) Close() (err error)

func (*MpvSocket) Metadata

func (mpv *MpvSocket) Metadata() *model.Metadata

func (*MpvSocket) Pause

func (mpv *MpvSocket) Pause(value bool) error

func (*MpvSocket) Play

func (mpv *MpvSocket) Play(url string) error

func (*MpvSocket) Seek

func (mpv *MpvSocket) Seek(amtSec int) *model.Metadata

func (*MpvSocket) SetVolume

func (mpv *MpvSocket) SetVolume(value int) (int, error)

func (*MpvSocket) Stop

func (mpv *MpvSocket) Stop() error

Jump to

Keyboard shortcuts

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