Documentation ¶
Index ¶
- func Start(ctx *context.AppContext)
- type Player
- func (p Player) CanControl() (bool, error)
- func (p Player) CanGoNext() (bool, error)
- func (p Player) CanGoPrevious() (bool, error)
- func (p Player) CanPause() (bool, error)
- func (p Player) CanPlay() (bool, error)
- func (p Player) CanSeek() (bool, error)
- func (p Player) MaximumRate() (float64, error)
- func (p Player) Metadata() (types.Metadata, error)
- func (p Player) MinimumRate() (float64, error)
- func (p Player) Next() 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() (types.PlaybackStatus, error)
- func (p Player) Position() (int64, error)
- func (p Player) Previous() error
- func (p Player) Rate() (float64, error)
- func (p Player) Seek(offset types.Microseconds) error
- func (p Player) SetPosition(trackId string, position types.Microseconds) error
- func (p Player) SetRate(float64) error
- func (p Player) SetVolume(in float64) error
- func (p Player) Stop() error
- func (p Player) Volume() (float64, error)
- type Root
- func (r Root) CanQuit() (bool, error)
- func (r Root) CanRaise() (bool, error)
- func (r Root) HasTrackList() (bool, error)
- func (r Root) Identity() (string, error)
- func (r Root) Quit() error
- func (r Root) Raise() error
- func (r Root) SupportedMimeTypes() ([]string, error)
- func (r Root) SupportedUriSchemes() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(ctx *context.AppContext)
Start starts the mpris server, handling play/pause events, and announces the currently playing track on an interval
Types ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (Player) CanControl ¶
func (Player) CanGoPrevious ¶
func (Player) MaximumRate ¶
func (Player) MinimumRate ¶
func (Player) PlaybackStatus ¶
func (p Player) PlaybackStatus() (types.PlaybackStatus, error)
func (Player) SetPosition ¶
func (p Player) SetPosition(trackId string, position types.Microseconds) error
type Root ¶
type Root struct{}
func (Root) HasTrackList ¶
func (Root) SupportedMimeTypes ¶
func (Root) SupportedUriSchemes ¶
Click to show internal directories.
Click to hide internal directories.