mpris

package module
v0.0.0-...-933ae9a Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2015 License: MIT Imports: 3 Imported by: 2

README

go-mpris

A Go library for MPRIS

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

func (Player) GetLoopStatus

func (i Player) GetLoopStatus() LoopStatus

func (Player) GetMetadata

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

func (Player) GetPlaybackStatus

func (i Player) GetPlaybackStatus() PlaybackStatus

func (Player) GetPosition

func (i Player) GetPosition() int64

func (Player) GetRate

func (i Player) GetRate() float64

func (Player) GetShuffle

func (i Player) GetShuffle() bool

func (Player) GetVolume

func (i Player) GetVolume() float64

func (Player) Next

func (i Player) Next()

func (Player) OpenUri

func (i Player) OpenUri(uri string)

func (Player) Pause

func (i Player) Pause()

func (Player) Play

func (i Player) Play()

func (Player) PlayPause

func (i Player) PlayPause()

func (Player) Previous

func (i Player) Previous()

func (Player) Quit

func (i Player) Quit()

func (Player) Raise

func (i Player) Raise()

func (Player) Seek

func (i Player) Seek(offset int64)

func (Player) SetPosition

func (i Player) SetPosition(position float64)

func (Player) SetVolume

func (i Player) SetVolume(volume float64)

func (Player) Stop

func (i Player) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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