mpris

package
v0.0.0-...-db82e77 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlayerProps

func PlayerProps(state mpd.PlayState) map[string]*prop.Prop

func RootProps

func RootProps(name string) map[string]*prop.Prop

Types

type Controller

type Controller interface {
	Next()
	Previous()
	Play()
	Pause()
	PlayPause()
	Stop()
}

type Player

type Player struct {
	Control Controller
}

func (Player) Next

func (p Player) Next() *dbus.Error

func (Player) OpenUri

func (p Player) OpenUri(s string) *dbus.Error

func (Player) Pause

func (p Player) Pause() *dbus.Error

func (Player) Play

func (p Player) Play() *dbus.Error

func (Player) PlayPause

func (p Player) PlayPause() *dbus.Error

func (Player) Previous

func (p Player) Previous() *dbus.Error

func (Player) Seek

func (p Player) Seek(x int64) *dbus.Error

func (Player) SetPosition

func (p Player) SetPosition(o dbus.ObjectPath, x int64) *dbus.Error

func (Player) Stop

func (p Player) Stop() *dbus.Error

type Root

type Root struct{}

func (Root) Quit

func (m Root) Quit() *dbus.Error

func (Root) Raise

func (m Root) Raise() *dbus.Error

Jump to

Keyboard shortcuts

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