mpris

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

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 (p Player) CanControl() (bool, error)

func (Player) CanGoNext

func (p Player) CanGoNext() (bool, error)

func (Player) CanGoPrevious

func (p Player) CanGoPrevious() (bool, error)

func (Player) CanPause

func (p Player) CanPause() (bool, error)

func (Player) CanPlay

func (p Player) CanPlay() (bool, error)

func (Player) CanSeek

func (p Player) CanSeek() (bool, error)

func (Player) MaximumRate

func (p Player) MaximumRate() (float64, error)

func (Player) Metadata

func (p Player) Metadata() (types.Metadata, error)

func (Player) MinimumRate

func (p Player) MinimumRate() (float64, error)

func (Player) Next

func (p Player) Next() error

func (Player) OpenUri

func (p Player) OpenUri(uri string) error

func (Player) Pause

func (p Player) Pause() error

func (Player) Play

func (p Player) Play() error

func (Player) PlayPause

func (p Player) PlayPause() error

func (Player) PlaybackStatus

func (p Player) PlaybackStatus() (types.PlaybackStatus, error)

func (Player) Position

func (p Player) Position() (int64, error)

func (Player) Previous

func (p Player) Previous() error

func (Player) Rate

func (p Player) Rate() (float64, error)

func (Player) Seek

func (p Player) Seek(offset types.Microseconds) error

func (Player) SetPosition

func (p Player) SetPosition(trackId string, position types.Microseconds) error

func (Player) SetRate

func (p Player) SetRate(float64) error

func (Player) SetVolume

func (p Player) SetVolume(in float64) error

func (Player) Stop

func (p Player) Stop() error

func (Player) Volume

func (p Player) Volume() (float64, error)

type Root

type Root struct{}

func (Root) CanQuit

func (r Root) CanQuit() (bool, error)

func (Root) CanRaise

func (r Root) CanRaise() (bool, error)

func (Root) HasTrackList

func (r Root) HasTrackList() (bool, error)

func (Root) Identity

func (r Root) Identity() (string, error)

func (Root) Quit

func (r Root) Quit() error

func (Root) Raise

func (r Root) Raise() error

func (Root) SupportedMimeTypes

func (r Root) SupportedMimeTypes() ([]string, error)

func (Root) SupportedUriSchemes

func (r Root) SupportedUriSchemes() ([]string, error)

Jump to

Keyboard shortcuts

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