Documentation
¶
Index ¶
- type DiscordInstance
- type Instance
- type MediaPlayer2
- func (m *MediaPlayer2) Next() *dbus.Error
- func (m *MediaPlayer2) Pause() *dbus.Error
- func (m *MediaPlayer2) Play() *dbus.Error
- func (m *MediaPlayer2) PlayPause() *dbus.Error
- func (m *MediaPlayer2) Previous() *dbus.Error
- func (m *MediaPlayer2) Quit() *dbus.Error
- func (m *MediaPlayer2) Raise() *dbus.Error
- func (m *MediaPlayer2) Stop() *dbus.Error
- type Metadata
- type NextSongMsg
- type PlayPauseMsg
- type PreviousSongMsg
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscordInstance ¶ added in v1.5.0
type DiscordInstance struct {
Connected bool
}
func InitDiscord ¶ added in v1.5.0
func InitDiscord() *DiscordInstance
func (*DiscordInstance) UpdateActivity ¶ added in v1.5.0
func (ins *DiscordInstance) UpdateActivity(meta Metadata)
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) ClearMetadata ¶ added in v1.8.2
func (ins *Instance) ClearMetadata()
func (*Instance) UpdateMetadata ¶
func (*Instance) UpdateStatus ¶
type MediaPlayer2 ¶
func (*MediaPlayer2) Next ¶
func (m *MediaPlayer2) Next() *dbus.Error
func (*MediaPlayer2) Pause ¶
func (m *MediaPlayer2) Pause() *dbus.Error
func (*MediaPlayer2) Play ¶
func (m *MediaPlayer2) Play() *dbus.Error
func (*MediaPlayer2) PlayPause ¶
func (m *MediaPlayer2) PlayPause() *dbus.Error
func (*MediaPlayer2) Previous ¶
func (m *MediaPlayer2) Previous() *dbus.Error
func (*MediaPlayer2) Quit ¶
func (m *MediaPlayer2) Quit() *dbus.Error
func (*MediaPlayer2) Raise ¶
func (m *MediaPlayer2) Raise() *dbus.Error
func (*MediaPlayer2) Stop ¶
func (m *MediaPlayer2) Stop() *dbus.Error
type Metadata ¶
type Metadata struct {
Title string
Artist string
Album string
Duration float64
Position float64
ImageURL string
}
func (Metadata) LengthInMicroseconds ¶
type NextSongMsg ¶
type NextSongMsg struct{}
type PlayPauseMsg ¶
type PlayPauseMsg struct{}
type PreviousSongMsg ¶
type PreviousSongMsg struct{}
Click to show internal directories.
Click to hide internal directories.