mpris

package module
v0.0.0-...-bc50e74 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 2 Imported by: 0

README

go-mpris

A Go library for MPRIS

See the spec for more details

Documentation

Index

Constants

View Source
const (
	PlaybackPlaying PlaybackStatus = "Playing"
	PlaybackPaused                 = "Paused"
	PlaybackStopped                = "Stopped"
)
View Source
const (
	LoopNone     LoopStatus = "None"
	LoopTrack               = "Track"
	LoopPlaylist            = "Playlist"
)

Variables

This section is empty.

Functions

func List

func List(conn *dbus.Conn) ([]string, error)

Types

type LoopStatus

type LoopStatus string

type PlaybackStatus

type PlaybackStatus string

type Player

type Player struct {
	// contains filtered or unexported fields
}

func New

func New(conn *dbus.Conn, name string) *Player

func (Player) GetIdentity

func (i Player) GetIdentity() (string, error)

func (Player) GetLoopStatus

func (i Player) GetLoopStatus() (LoopStatus, error)

func (Player) GetMetadata

func (i Player) GetMetadata() (map[string]dbus.Variant, error)

func (Player) GetPlaybackStatus

func (i Player) GetPlaybackStatus() (PlaybackStatus, error)

func (Player) GetPosition

func (i Player) GetPosition() (int64, error)

func (Player) GetRate

func (i Player) GetRate() (float64, error)

func (Player) GetShuffle

func (i Player) GetShuffle() (bool, error)

func (Player) GetVolume

func (i Player) GetVolume() (float64, error)

func (Player) Next

func (i Player) Next() error

func (Player) OpenUri

func (i Player) OpenUri(uri string) error

func (Player) Pause

func (i Player) Pause() error

func (Player) Play

func (i Player) Play() error

func (Player) PlayPause

func (i Player) PlayPause() error

func (Player) Previous

func (i Player) Previous() error

func (Player) Quit

func (i Player) Quit() error

func (Player) Raise

func (i Player) Raise() error

func (Player) Seek

func (i Player) Seek(offset int64) error

func (Player) SetPosition

func (i Player) SetPosition(trackId *dbus.ObjectPath, position int64) error

func (Player) SetVolume

func (i Player) SetVolume(volume float64) error

func (Player) Stop

func (i Player) Stop() error

func (Player) VolumeDown

func (i Player) VolumeDown() error

func (Player) VolumeUp

func (i Player) VolumeUp() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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