Documentation
¶
Index ¶
- Constants
- 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
- func (i Player) GetPlaybackStatus() PlaybackStatus
- 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(position float64)
- func (i Player) SetVolume(volume float64)
- func (i Player) Stop()
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 ¶
Types ¶
type LoopStatus ¶
type LoopStatus string
type PlaybackStatus ¶
type PlaybackStatus string
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) GetMetadata ¶
func (Player) GetPlaybackStatus ¶
func (i Player) GetPlaybackStatus() PlaybackStatus
func (Player) GetPosition ¶
func (i Player) GetPosition() int64
func (Player) GetShuffle ¶
func (i Player) GetShuffle() bool
func (Player) SetPosition ¶
func (i Player) SetPosition(position float64)
Click to show internal directories.
Click to hide internal directories.