Documentation ¶
Index ¶
- func CreateAlbumMetadata(deezerId uint64) ([]byte, error)
- func CreatePlaylistMetadata(deezerId uint64) ([]byte, error)
- func CreateTrackMetadata(deezerId string) ([]byte, error)
- type CardInfo
- type CardStatus
- type SonosSpeaker
- func (s *SonosSpeaker) Clear()
- func (s *SonosSpeaker) MediaInfo() (State, error)
- func (s *SonosSpeaker) Name() string
- func (s *SonosSpeaker) Next()
- func (s *SonosSpeaker) Pause()
- func (s *SonosSpeaker) Play()
- func (s *SonosSpeaker) Previous()
- func (s *SonosSpeaker) Seek(position int)
- func (s *SonosSpeaker) SetPlaylist(playlist CardInfo)
- func (s *SonosSpeaker) SetRepeat(repeat bool)
- type State
- type TrackLocation
- type TrackType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAlbumMetadata ¶
func CreatePlaylistMetadata ¶
func CreateTrackMetadata ¶
Types ¶
type CardInfo ¶
type CardInfo struct { // The ID of the card itself ID string `json:"id"` // AlbumID contains the Deezer album ID if applicable AlbumID *uint64 `json:"albumId,omitempty"` // PlaylistID contains the Deezer playlist ID if applicable PlaylistID *uint64 `json:"playlistId,omitempty"` // State is the last seen state of the card. If none exists, the state will be nil. State *CardStatus `json:"state,omitempty"` // Title is the human readable title of the album/playlist on the card. Helps in debugging. Title string `json:"title,omitempty"` }
func (CardInfo) AlbumIDString ¶
func (CardInfo) PlaylistIDString ¶
type CardStatus ¶
type SonosSpeaker ¶
type SonosSpeaker struct {
// contains filtered or unexported fields
}
func New ¶
func New(name string) (*SonosSpeaker, error)
func (*SonosSpeaker) Clear ¶
func (s *SonosSpeaker) Clear()
func (*SonosSpeaker) MediaInfo ¶
func (s *SonosSpeaker) MediaInfo() (State, error)
func (*SonosSpeaker) Name ¶
func (s *SonosSpeaker) Name() string
func (*SonosSpeaker) Next ¶
func (s *SonosSpeaker) Next()
func (*SonosSpeaker) Pause ¶
func (s *SonosSpeaker) Pause()
func (*SonosSpeaker) Play ¶
func (s *SonosSpeaker) Play()
func (*SonosSpeaker) Previous ¶
func (s *SonosSpeaker) Previous()
func (*SonosSpeaker) Seek ¶
func (s *SonosSpeaker) Seek(position int)
func (*SonosSpeaker) SetPlaylist ¶
func (s *SonosSpeaker) SetPlaylist(playlist CardInfo)
SetPlaylist clears the queue and then adds the given playlist for the speaker. Will use the order: * Album * Playlist * Tracks and use the first one that has been set. Repeat will also be set.
func (*SonosSpeaker) SetRepeat ¶
func (s *SonosSpeaker) SetRepeat(repeat bool)
type TrackLocation ¶
type TrackLocation int
Click to show internal directories.
Click to hide internal directories.