Documentation
¶
Index ¶
- func List(conn *dbus.Conn) ([]string, error)
- type LoopStatus
- type PlaybackStatus
- type Player
- func (i Player) GetIdentity() string
- func (i Player) GetLoopStatus() LoopStatus
- func (i Player) GetMetadata() (map[string]dbus.Variant, bool)
- func (i Player) GetPlaybackStatus() string
- func (i Player) GetPosition() int64
- func (i Player) GetRate() float64
- func (i Player) GetShuffle() bool
- func (i Player) GetVolume() float64
- func (i Player) Next()
- func (i Player) OpenUri(uri string)
- func (i Player) Pause()
- func (i Player) Play()
- func (i Player) PlayPause()
- func (i Player) Previous()
- func (i Player) Quit()
- func (i Player) Raise()
- func (i Player) Seek(offset int64)
- func (i Player) SetPosition(trackId *dbus.ObjectPath, position int64)
- func (i Player) SetVolume(volume float64)
- func (i Player) Stop()
- func (i Player) SupportsQueueSong() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoopStatus ¶
type LoopStatus string
const ( LoopNone LoopStatus = "None" LoopTrack LoopStatus = "Track" LoopPlaylist LoopStatus = "Playlist" )
type PlaybackStatus ¶
type PlaybackStatus string
const ( PlaybackPlaying PlaybackStatus = "Playing" PlaybackPaused PlaybackStatus = "Paused" PlaybackStopped PlaybackStatus = "Stopped" )
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (Player) GetIdentity ¶
func (i Player) GetIdentity() string
func (Player) GetLoopStatus ¶
func (i Player) GetLoopStatus() LoopStatus
func (Player) GetPlaybackStatus ¶
func (i Player) GetPlaybackStatus() string
func (Player) GetPosition ¶
func (i Player) GetPosition() int64
func (Player) GetShuffle ¶
func (i Player) GetShuffle() bool
func (Player) SetPosition ¶
func (i Player) SetPosition(trackId *dbus.ObjectPath, position int64)
func (Player) SupportsQueueSong ¶ added in v0.2.0
func (i Player) SupportsQueueSong() bool
Click to show internal directories.
Click to hide internal directories.