Documentation ¶
Index ¶
- Constants
- func DbusError(err error) *dbus.Error
- type Client
- type HandlesProperties
- type IsApp
- type IsPlayer
- type LoopState
- type PlaybackState
- type Player
- func (p *Player) CanControl() bool
- func (p *Player) CanGoNext() bool
- func (p *Player) CanGoPrevious() bool
- func (p *Player) CanPause() bool
- func (p *Player) CanPlay() bool
- func (p *Player) CanQuit() bool
- func (p *Player) CanRaise() bool
- func (p *Player) CanSeek() bool
- func (p *Player) CanSetFullscreen() bool
- func (p *Player) DesktopEntry() string
- func (p *Player) Fullscreen(value ...bool) bool
- func (p *Player) Get(iface, prop string) (result dbus.Variant, err error)
- func (p *Player) GetAll(iface string) (result map[string]dbus.Variant, err error)
- func (p *Player) HasTrackList() bool
- func (p *Player) Identity() string
- func (p *Player) Introspect() (*introspect.Node, error)
- func (p *Player) LoopStatus() LoopState
- func (p *Player) MaximumRate() float64
- func (p *Player) MinimumRate() float64
- func (p *Player) Next() error
- func (p *Player) OnChange() (chan *dbus.Signal, error)
- func (p *Player) OnSeek() (chan *dbus.Signal, error)
- func (p *Player) OpenUri(uri string) error
- func (p *Player) Pause() error
- func (p *Player) Play() error
- func (p *Player) PlayPause() error
- func (p *Player) PlaybackStatus() PlaybackState
- func (p *Player) Position() int64
- func (p *Player) Previous() error
- func (p *Player) Quit() error
- func (p *Player) Raise() error
- func (p *Player) Rate(value ...float64) float64
- func (p *Player) RawMetadata() map[string]dbus.Variant
- func (p *Player) Seek(delta int64) error
- func (p *Player) Set(iface, prop string, value interface{}) (err error)
- func (p *Player) SetPosition(trackId string, position int64) error
- func (p *Player) Shuffle(value ...bool) bool
- func (p *Player) Stop() error
- func (p *Player) SupportedMimeTypes() []string
- func (p *Player) SupportedUriSchemes() []string
- func (p *Player) Volume(value ...float64) float64
- type Server
Constants ¶
View Source
const ( PlaybackPlaying PlaybackState = "Playing" PlaybackPaused = "Paused" PlaybackStopped = "Stopped" PlaybackUnsupported = "" LoopNone LoopState = "None" LoopTrack = "Track" LoopPlaylist = "Playlist" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FindPlayer ¶
func (*Client) OnAnyPlayerChange ¶
func (*Client) PlayerWithOwner ¶
type HandlesProperties ¶
type PlaybackState ¶
type PlaybackState string
type Player ¶
func (*Player) CanControl ¶
func (*Player) CanGoPrevious ¶
func (*Player) CanSetFullscreen ¶
func (*Player) DesktopEntry ¶
func (*Player) Fullscreen ¶
func (*Player) HasTrackList ¶
func (*Player) Introspect ¶
func (p *Player) Introspect() (*introspect.Node, error)
func (*Player) LoopStatus ¶
func (*Player) MaximumRate ¶
func (*Player) MinimumRate ¶
func (*Player) PlaybackStatus ¶
func (p *Player) PlaybackStatus() PlaybackState
func (*Player) RawMetadata ¶
func (*Player) SupportedMimeTypes ¶
func (*Player) SupportedUriSchemes ¶
type Server ¶
type Server struct { Conn *dbus.Conn Name string AppServer IsApp PlayerServer IsPlayer PropertyHandler HandlesProperties // contains filtered or unexported fields }
MPRIS Server
Create and listen to start application.
func (*Server) AddInterface ¶
Click to show internal directories.
Click to hide internal directories.