Documentation
¶
Index ¶
- type AVTransport
- func (s *AVTransport) AddMultipleURIsToQueue(numberOfURIs int, enqueuedURIs string, enqueuedURIsMetaData string, ...) (addMultipleURIsToQueueResponse, error)
- func (s *AVTransport) AddURIToQueue(enqueuedURI string, enqueuedURIMetaData string, ...) (addURIToQueueResponse, error)
- func (s *AVTransport) AddURIToSavedQueue(contentType string, enqueuedURI string, enqueuedURIMetaData string, ...) (addURIToSavedQueueResponse, error)
- func (s *AVTransport) BackupQueue() error
- func (s *AVTransport) BecomeCoordinatorOfStandaloneGroup() (becomeCoordinatorOfStandaloneGroupResponse, error)
- func (s *AVTransport) BecomeGroupCoordinator(currentCoordinator string, currentGroupID string, otherMembers string, ...) error
- func (s *AVTransport) BecomeGroupCoordinatorAndSource(currentCoordinator string, currentGroupID string, otherMembers string, ...) error
- func (s *AVTransport) ChangeCoordinator(currentCoordinator string, newCoordinator string, newTransportSettings string, ...) error
- func (s *AVTransport) ChangeTransportSettings(newTransportSettings string, currentAVTransportURI string) error
- func (s *AVTransport) ConfigureSleepTimer(seconds int) error
- func (s *AVTransport) CreateSavedQueue(title string, enqueuedURI string, enqueuedURIMetaData string) (createSavedQueueResponse, error)
- func (s *AVTransport) DelegateGroupCoordinationTo(newCoordinator string, rejoinGroup bool) error
- func (s *AVTransport) EndDirectControlSession() error
- func (s *AVTransport) GetCrossfadeMode() (CrossfadeMode bool, err error)
- func (s *AVTransport) GetCurrentTransportActions() (Actions string, err error)
- func (s *AVTransport) GetDeviceCapabilities() (getDeviceCapabilitiesResponse, error)
- func (s *AVTransport) GetMediaInfo() (getMediaInfoResponse, error)
- func (s *AVTransport) GetPositionInfo() (getPositionInfoResponse, error)
- func (s *AVTransport) GetRemainingSleepTimerDuration() (getRemainingSleepTimerDurationResponse, error)
- func (s *AVTransport) GetRunningAlarmProperties() (getRunningAlarmPropertiesResponse, error)
- func (s *AVTransport) GetTransportInfo() (getTransportInfoResponse, error)
- func (s *AVTransport) GetTransportSettings() (getTransportSettingsResponse, error)
- func (s *AVTransport) Next() error
- func (s *AVTransport) NotifyDeletedURI(deletedURI string) error
- func (s *AVTransport) Pause() error
- func (s *AVTransport) Play() error
- func (s *AVTransport) Previous() error
- func (s *AVTransport) RemoveAllTracksFromQueue() error
- func (s *AVTransport) RemoveTrackFromQueue(contentType string, track int) error
- func (s *AVTransport) RemoveTrackRangeFromQueue(start int, count int) (NewUpdateID int, err error)
- func (s *AVTransport) ReorderTracksInQueue(start int, count int, insertBefore int) error
- func (s *AVTransport) ReorderTracksInSavedQueue(contentType string, trackList string, newPositionList string) (reorderTracksInSavedQueueResponse, error)
- func (s *AVTransport) RunAlarm(alarmID int, loggedStartTime string, duration string, programURI string, ...) error
- func (s *AVTransport) SaveQueue(title string) (AssignedObjectID string, err error)
- func (s *AVTransport) Seek(unit string, target string) error
- func (s *AVTransport) SetAVTransportURI(currentURI string, currentURIMetaData string) error
- func (s *AVTransport) SetCrossfadeMode(state bool) error
- func (s *AVTransport) SetNextAVTransportURI(nextURI string, nextURIMetaData string) error
- func (s *AVTransport) SetPlayMode(shuffle bool, repeat bool, repeatOne bool) error
- func (s *AVTransport) SnoozeAlarm(seconds int) error
- func (s *AVTransport) StartAutoplay(programURI string, programMetaData string, volume int, includeLinkedZones bool, ...) error
- func (s *AVTransport) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AVTransport ¶
type AVTransport struct {
Send func(action, body, targetTag string) (string, error)
// Play speed usually `1`, can be a fraction of 1 Allowed values: `1`
Speed int
// Should always be `0`
UpdateID int
}
func (*AVTransport) AddMultipleURIsToQueue ¶
func (*AVTransport) AddURIToQueue ¶
func (*AVTransport) AddURIToSavedQueue ¶
func (s *AVTransport) AddURIToSavedQueue(contentType string, enqueuedURI string, enqueuedURIMetaData string, addAtIndex int) (addURIToSavedQueueResponse, error)
`contentType` should be one of `Gonos.ContentTypes.*`
func (*AVTransport) BackupQueue ¶
func (s *AVTransport) BackupQueue() error
func (*AVTransport) BecomeCoordinatorOfStandaloneGroup ¶
func (s *AVTransport) BecomeCoordinatorOfStandaloneGroup() (becomeCoordinatorOfStandaloneGroupResponse, error)
func (*AVTransport) BecomeGroupCoordinator ¶
func (s *AVTransport) BecomeGroupCoordinator(currentCoordinator string, currentGroupID string, otherMembers string, transportSettings string, currentURI string, currentURIMetaData string, sleepTimerState string, alarmState string, streamRestartState string, currentQueueTrackList string, currentVLIState string) error
func (*AVTransport) BecomeGroupCoordinatorAndSource ¶
func (s *AVTransport) BecomeGroupCoordinatorAndSource(currentCoordinator string, currentGroupID string, otherMembers string, currentURI string, currentURIMetaData string, sleepTimerState string, alarmState string, streamRestartState string, currentAVTTrackList string, currentQueueTrackList string, currentSourceState string, resumePlayback bool) error
func (*AVTransport) ChangeCoordinator ¶
func (*AVTransport) ChangeTransportSettings ¶
func (s *AVTransport) ChangeTransportSettings(newTransportSettings string, currentAVTransportURI string) error
func (*AVTransport) ConfigureSleepTimer ¶
func (s *AVTransport) ConfigureSleepTimer(seconds int) error
func (*AVTransport) CreateSavedQueue ¶
func (s *AVTransport) CreateSavedQueue(title string, enqueuedURI string, enqueuedURIMetaData string) (createSavedQueueResponse, error)
func (*AVTransport) DelegateGroupCoordinationTo ¶
func (s *AVTransport) DelegateGroupCoordinationTo(newCoordinator string, rejoinGroup bool) error
func (*AVTransport) EndDirectControlSession ¶
func (s *AVTransport) EndDirectControlSession() error
func (*AVTransport) GetCrossfadeMode ¶
func (s *AVTransport) GetCrossfadeMode() (CrossfadeMode bool, err error)
func (*AVTransport) GetCurrentTransportActions ¶
func (s *AVTransport) GetCurrentTransportActions() (Actions string, err error)
func (*AVTransport) GetDeviceCapabilities ¶
func (s *AVTransport) GetDeviceCapabilities() (getDeviceCapabilitiesResponse, error)
func (*AVTransport) GetMediaInfo ¶
func (s *AVTransport) GetMediaInfo() (getMediaInfoResponse, error)
func (*AVTransport) GetPositionInfo ¶
func (s *AVTransport) GetPositionInfo() (getPositionInfoResponse, error)
func (*AVTransport) GetRemainingSleepTimerDuration ¶
func (s *AVTransport) GetRemainingSleepTimerDuration() (getRemainingSleepTimerDurationResponse, error)
func (*AVTransport) GetRunningAlarmProperties ¶
func (s *AVTransport) GetRunningAlarmProperties() (getRunningAlarmPropertiesResponse, error)
func (*AVTransport) GetTransportInfo ¶
func (s *AVTransport) GetTransportInfo() (getTransportInfoResponse, error)
func (*AVTransport) GetTransportSettings ¶
func (s *AVTransport) GetTransportSettings() (getTransportSettingsResponse, error)
func (*AVTransport) Next ¶
func (s *AVTransport) Next() error
func (*AVTransport) NotifyDeletedURI ¶
func (s *AVTransport) NotifyDeletedURI(deletedURI string) error
func (*AVTransport) Pause ¶
func (s *AVTransport) Pause() error
func (*AVTransport) Play ¶
func (s *AVTransport) Play() error
func (*AVTransport) Previous ¶
func (s *AVTransport) Previous() error
func (*AVTransport) RemoveAllTracksFromQueue ¶
func (s *AVTransport) RemoveAllTracksFromQueue() error
func (*AVTransport) RemoveTrackFromQueue ¶
func (s *AVTransport) RemoveTrackFromQueue(contentType string, track int) error
`contentType` should be one of `Gonos.ContentTypes.*`
func (*AVTransport) RemoveTrackRangeFromQueue ¶
func (s *AVTransport) RemoveTrackRangeFromQueue(start int, count int) (NewUpdateID int, err error)
func (*AVTransport) ReorderTracksInQueue ¶
func (s *AVTransport) ReorderTracksInQueue(start int, count int, insertBefore int) error
func (*AVTransport) ReorderTracksInSavedQueue ¶
func (s *AVTransport) ReorderTracksInSavedQueue(contentType string, trackList string, newPositionList string) (reorderTracksInSavedQueueResponse, error)
`contentType` should be one of `Gonos.ContentTypes.*`
func (*AVTransport) RunAlarm ¶
func (s *AVTransport) RunAlarm(alarmID int, loggedStartTime string, duration string, programURI string, programMetaData string, playMode string, volume int, includeLinkedZones bool) error
`playMode` should be one of `Gonos.PlayModes.*`
func (*AVTransport) SaveQueue ¶
func (s *AVTransport) SaveQueue(title string) (AssignedObjectID string, err error)
`contentType` should be one of `Gonos.ContentTypes.*`
Returns the objectID of the new que.
func (*AVTransport) Seek ¶
func (s *AVTransport) Seek(unit string, target string) error
Prefer methods `zp.SeekTrack`, `zp.SeekTime` or `zp.SeekTimeDelta`.
`unit` should be one of `Gonos.SeekModes.*`.
func (*AVTransport) SetAVTransportURI ¶
func (s *AVTransport) SetAVTransportURI(currentURI string, currentURIMetaData string) error
func (*AVTransport) SetCrossfadeMode ¶
func (s *AVTransport) SetCrossfadeMode(state bool) error
func (*AVTransport) SetNextAVTransportURI ¶
func (s *AVTransport) SetNextAVTransportURI(nextURI string, nextURIMetaData string) error
func (*AVTransport) SetPlayMode ¶
func (s *AVTransport) SetPlayMode(shuffle bool, repeat bool, repeatOne bool) error
func (*AVTransport) SnoozeAlarm ¶
func (s *AVTransport) SnoozeAlarm(seconds int) error
func (*AVTransport) StartAutoplay ¶
func (*AVTransport) Stop ¶
func (s *AVTransport) Stop() error
Click to show internal directories.
Click to hide internal directories.