mpris

package module
v0.0.0-...-50d436b Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 3 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(ctx context.Context, 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(ctx context.Context) error

func (Player) OpenUri

func (i Player) OpenUri(ctx context.Context, uri string) error

func (Player) Pause

func (i Player) Pause(ctx context.Context) error

func (Player) Play

func (i Player) Play(ctx context.Context) error

func (Player) PlayPause

func (i Player) PlayPause(ctx context.Context) error

func (Player) Previous

func (i Player) Previous(ctx context.Context) error

func (Player) Quit

func (i Player) Quit() error

func (Player) Raise

func (i Player) Raise() error

func (Player) Seek

func (i Player) Seek(ctx context.Context, 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(ctx context.Context) error

func (Player) VolumeDown

func (i Player) VolumeDown(ctx context.Context) error

func (Player) VolumeUp

func (i Player) VolumeUp(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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