AVTransport

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 New

func New(send func(action, body, targetTag string) (string, error)) AVTransport

func (*AVTransport) AddMultipleURIsToQueue

func (s *AVTransport) AddMultipleURIsToQueue(numberOfURIs int, enqueuedURIs string, enqueuedURIsMetaData string, containerURI string, containerMetaData string, desiredFirstTrackNumberEnqueued int, enqueueAsNext bool) (addMultipleURIsToQueueResponse, error)

func (*AVTransport) AddURIToQueue

func (s *AVTransport) AddURIToQueue(enqueuedURI string, enqueuedURIMetaData string, desiredFirstTrackNumberEnqueued int, enqueueAsNext bool) (addURIToQueueResponse, error)

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 (s *AVTransport) ChangeCoordinator(currentCoordinator string, newCoordinator string, newTransportSettings string, currentAVTransportURI string) error

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 (s *AVTransport) StartAutoplay(programURI string, programMetaData string, volume int, includeLinkedZones bool, resetVolumeAfter bool) error

func (*AVTransport) Stop

func (s *AVTransport) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL