Documentation ¶
Index ¶
- Variables
- type AudioDevice
- type Metadata
- type Mp
- func (c *Mp) AudioDeviceList() ([]AudioDevice, error)
- func (c *Mp) Clear() error
- func (c *Mp) GetAudioDevice() (string, error)
- func (c *Mp) GetIntProperty(prop string) (int, error)
- func (c *Mp) Goto(pos int) error
- func (c *Mp) LoadAppend(tracks ...string) error
- func (c *Mp) LoadListAppend(path string) error
- func (c *Mp) LoadListReplace(path string) error
- func (c *Mp) LoadNext(tracks ...string) error
- func (c *Mp) LoadPlay(tracks ...string) error
- func (c *Mp) LoadReplace(tracks ...string) error
- func (c *Mp) MediaTitle() (string, error)
- func (c *Mp) Move(from, to int) error
- func (c *Mp) Next() error
- func (c *Mp) Now() (meta Metadata, err error)
- func (c Mp) Paused() bool
- func (c *Mp) Play() error
- func (c *Mp) PlaylistLen() (int, error)
- func (c *Mp) PlaylistPos() (int, error)
- func (c *Mp) Prev() error
- func (c *Mp) Queue() (Queue, error)
- func (c *Mp) Quit() error
- func (c *Mp) Remove(n int) error
- func (c *Mp) SetAudioDevice(id int) error
- func (c *Mp) Shuffle() error
- func (c *Mp) Stop() error
- func (c *Mp) Volume() (Volume, error)
- func (c *Mp) VolumeDown(val float64) error
- func (c *Mp) VolumeUp(val float64) error
- type Position
- type Queue
- type Track
- type Volume
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoPlayerRunning = errors.New("No player running") ErrNoFilepath = errors.New("No filepath or URL") )
Functions ¶
This section is empty.
Types ¶
type Mp ¶
Mp wraps mpv.Client
func (*Mp) AudioDeviceList ¶
func (c *Mp) AudioDeviceList() ([]AudioDevice, error)
func (*Mp) GetAudioDevice ¶
func (*Mp) LoadAppend ¶
func (*Mp) LoadListAppend ¶
func (*Mp) LoadListReplace ¶
func (*Mp) LoadReplace ¶
func (*Mp) MediaTitle ¶
func (*Mp) PlaylistLen ¶
func (*Mp) PlaylistPos ¶
func (*Mp) SetAudioDevice ¶
func (*Mp) VolumeDown ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.