Documentation
¶
Index ¶
- func DataStorage(t MsgType) (interface{}, error)
- type AudioInfo
- type MsgType
- type PauseCmd
- type Playback
- func (p *Playback) AddReceiver(r Receiver)
- func (p *Playback) CommCh() chan comm
- func (p *Playback) Pause(playerName string) error
- func (p *Playback) Play(playerName string, url string) error
- func (p *Playback) Resume(playerName string) error
- func (p *Playback) Run(ctx context.Context) error
- func (p *Playback) Seek(playerName string, pos int) error
- func (p *Playback) SetVol(playerName string, vol int) error
- func (p *Playback) Stop(playerName string) error
- type PlaybackRequest
- type PlaybackState
- type PlaybackStatus
- type PlayerMsg
- type Receiver
- type Registration
- type ResumeCmd
- type SeekCmd
- type SetVolCmd
- type State
- type StopCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataStorage ¶
Types ¶
type Playback ¶
type Playback struct {
// contains filtered or unexported fields
}
func (*Playback) AddReceiver ¶
type PlaybackRequest ¶
type PlaybackRequest struct {
URL string
}
type PlaybackState ¶
type PlaybackState struct { Status PlaybackStatus EndReached bool LastPosition int Since time.Time }
type PlaybackStatus ¶
type PlaybackStatus int
const ( Stopped PlaybackStatus = iota Requested Error Paused Playing )
func (PlaybackStatus) String ¶
func (s PlaybackStatus) String() string
type PlayerMsg ¶
type PlayerMsg struct { MsgType MsgType Data json.RawMessage }
type Registration ¶
type Registration struct {
Name string
}
Click to show internal directories.
Click to hide internal directories.