Documentation
¶
Overview ¶
Package renderingcontrol is a generated RenderingControl package.
Index ¶
- Constants
- type ChannelEnum
- type GetBassArgs
- type GetBassResponse
- type GetEQArgs
- type GetEQResponse
- type GetHeadphoneConnectedArgs
- type GetHeadphoneConnectedResponse
- type GetLoudnessArgs
- type GetLoudnessResponse
- type GetMuteArgs
- type GetMuteResponse
- type GetOutputFixedArgs
- type GetOutputFixedResponse
- type GetRoomCalibrationStatusArgs
- type GetRoomCalibrationStatusResponse
- type GetSupportsOutputFixedArgs
- type GetSupportsOutputFixedResponse
- type GetTrebleArgs
- type GetTrebleResponse
- type GetVolumeArgs
- type GetVolumeDBArgs
- type GetVolumeDBRangeArgs
- type GetVolumeDBRangeResponse
- type GetVolumeDBResponse
- type GetVolumeResponse
- type LastChange
- type MuteChannelEnum
- type Property
- type RampToVolumeArgs
- type RampToVolumeResponse
- type RampTypeEnum
- type ResetBasicEQArgs
- type ResetBasicEQResponse
- type ResetExtEQArgs
- type ResetExtEQResponse
- type RestoreVolumePriorToRampArgs
- type RestoreVolumePriorToRampResponse
- type Service
- func (s *Service) Client() *http.Client
- func (s *Service) ControlEndpoint() *url.URL
- func (s *Service) EventEndpoint() *url.URL
- func (s *Service) GetBass(args *GetBassArgs) (*GetBassResponse, error)
- func (s *Service) GetEQ(args *GetEQArgs) (*GetEQResponse, error)
- func (s *Service) GetHeadphoneConnected(args *GetHeadphoneConnectedArgs) (*GetHeadphoneConnectedResponse, error)
- func (s *Service) GetLoudness(args *GetLoudnessArgs) (*GetLoudnessResponse, error)
- func (s *Service) GetMute(args *GetMuteArgs) (*GetMuteResponse, error)
- func (s *Service) GetOutputFixed(args *GetOutputFixedArgs) (*GetOutputFixedResponse, error)
- func (s *Service) GetRoomCalibrationStatus(args *GetRoomCalibrationStatusArgs) (*GetRoomCalibrationStatusResponse, error)
- func (s *Service) GetSupportsOutputFixed(args *GetSupportsOutputFixedArgs) (*GetSupportsOutputFixedResponse, error)
- func (s *Service) GetTreble(args *GetTrebleArgs) (*GetTrebleResponse, error)
- func (s *Service) GetVolume(args *GetVolumeArgs) (*GetVolumeResponse, error)
- func (s *Service) GetVolumeDB(args *GetVolumeDBArgs) (*GetVolumeDBResponse, error)
- func (s *Service) GetVolumeDBRange(args *GetVolumeDBRangeArgs) (*GetVolumeDBRangeResponse, error)
- func (s *Service) Location() *url.URL
- func (zp *Service) ParseEvent(body []byte) []interface{}
- func (s *Service) RampToVolume(args *RampToVolumeArgs) (*RampToVolumeResponse, error)
- func (s *Service) ResetBasicEQ(args *ResetBasicEQArgs) (*ResetBasicEQResponse, error)
- func (s *Service) ResetExtEQ(args *ResetExtEQArgs) (*ResetExtEQResponse, error)
- func (s *Service) RestoreVolumePriorToRamp(args *RestoreVolumePriorToRampArgs) (*RestoreVolumePriorToRampResponse, error)
- func (s *Service) SetBass(args *SetBassArgs) (*SetBassResponse, error)
- func (s *Service) SetChannelMap(args *SetChannelMapArgs) (*SetChannelMapResponse, error)
- func (s *Service) SetEQ(args *SetEQArgs) (*SetEQResponse, error)
- func (s *Service) SetLoudness(args *SetLoudnessArgs) (*SetLoudnessResponse, error)
- func (s *Service) SetMute(args *SetMuteArgs) (*SetMuteResponse, error)
- func (s *Service) SetOutputFixed(args *SetOutputFixedArgs) (*SetOutputFixedResponse, error)
- func (s *Service) SetRelativeVolume(args *SetRelativeVolumeArgs) (*SetRelativeVolumeResponse, error)
- func (s *Service) SetRoomCalibrationStatus(args *SetRoomCalibrationStatusArgs) (*SetRoomCalibrationStatusResponse, error)
- func (s *Service) SetTreble(args *SetTrebleArgs) (*SetTrebleResponse, error)
- func (s *Service) SetVolume(args *SetVolumeArgs) (*SetVolumeResponse, error)
- func (s *Service) SetVolumeDB(args *SetVolumeDBArgs) (*SetVolumeDBResponse, error)
- type ServiceOption
- type SetBassArgs
- type SetBassResponse
- type SetChannelMapArgs
- type SetChannelMapResponse
- type SetEQArgs
- type SetEQResponse
- type SetLoudnessArgs
- type SetLoudnessResponse
- type SetMuteArgs
- type SetMuteResponse
- type SetOutputFixedArgs
- type SetOutputFixedResponse
- type SetRelativeVolumeArgs
- type SetRelativeVolumeResponse
- type SetRoomCalibrationStatusArgs
- type SetRoomCalibrationStatusResponse
- type SetTrebleArgs
- type SetTrebleResponse
- type SetVolumeArgs
- type SetVolumeDBArgs
- type SetVolumeDBResponse
- type SetVolumeResponse
- type UpnpEvent
Constants ¶
const ( ServiceURN = "urn:schemas-upnp-org:service:RenderingControl:1" EncodingSchema = "http://schemas.xmlsoap.org/soap/encoding/" EnvelopeSchema = "http://schemas.xmlsoap.org/soap/envelope/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelEnum ¶
type ChannelEnum string
Enumerations
const ( Channel_Master ChannelEnum = "Master" Channel_LF ChannelEnum = "LF" Channel_RF ChannelEnum = "RF" )
type GetBassArgs ¶
GetBass Argument type.
type GetBassResponse ¶
type GetBassResponse struct {
CurrentBass int16 `xml:"CurrentBass"`
}
GetBass Response type.
type GetEQArgs ¶
type GetEQArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
EQType string `xml:"EQType"`
}
GetEQ Argument type.
type GetEQResponse ¶
type GetEQResponse struct {
CurrentValue int16 `xml:"CurrentValue"`
}
GetEQ Response type.
type GetHeadphoneConnectedArgs ¶
type GetHeadphoneConnectedArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
}
GetHeadphoneConnected Argument type.
type GetHeadphoneConnectedResponse ¶
type GetHeadphoneConnectedResponse struct {
CurrentHeadphoneConnected bool `xml:"CurrentHeadphoneConnected"`
}
GetHeadphoneConnected Response type.
type GetLoudnessArgs ¶
type GetLoudnessArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel ChannelEnum `xml:"Channel"`
}
GetLoudness Argument type.
type GetLoudnessResponse ¶
type GetLoudnessResponse struct {
CurrentLoudness bool `xml:"CurrentLoudness"`
}
GetLoudness Response type.
type GetMuteArgs ¶
type GetMuteArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel MuteChannelEnum `xml:"Channel"`
}
GetMute Argument type.
type GetMuteResponse ¶
type GetMuteResponse struct {
CurrentMute bool `xml:"CurrentMute"`
}
GetMute Response type.
type GetOutputFixedArgs ¶
type GetOutputFixedArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
}
GetOutputFixed Argument type.
type GetOutputFixedResponse ¶
type GetOutputFixedResponse struct {
CurrentFixed bool `xml:"CurrentFixed"`
}
GetOutputFixed Response type.
type GetRoomCalibrationStatusArgs ¶
type GetRoomCalibrationStatusArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
}
GetRoomCalibrationStatus Argument type.
type GetRoomCalibrationStatusResponse ¶
type GetRoomCalibrationStatusResponse struct {
RoomCalibrationEnabled bool `xml:"RoomCalibrationEnabled"`
RoomCalibrationAvailable bool `xml:"RoomCalibrationAvailable"`
}
GetRoomCalibrationStatus Response type.
type GetSupportsOutputFixedArgs ¶
type GetSupportsOutputFixedArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
}
GetSupportsOutputFixed Argument type.
type GetSupportsOutputFixedResponse ¶
type GetSupportsOutputFixedResponse struct {
CurrentSupportsFixed bool `xml:"CurrentSupportsFixed"`
}
GetSupportsOutputFixed Response type.
type GetTrebleArgs ¶
type GetTrebleArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
}
GetTreble Argument type.
type GetTrebleResponse ¶
type GetTrebleResponse struct {
CurrentTreble int16 `xml:"CurrentTreble"`
}
GetTreble Response type.
type GetVolumeArgs ¶
type GetVolumeArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel ChannelEnum `xml:"Channel"`
}
GetVolume Argument type.
type GetVolumeDBArgs ¶
type GetVolumeDBArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel ChannelEnum `xml:"Channel"`
}
GetVolumeDB Argument type.
type GetVolumeDBRangeArgs ¶
type GetVolumeDBRangeArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel ChannelEnum `xml:"Channel"`
}
GetVolumeDBRange Argument type.
type GetVolumeDBRangeResponse ¶
type GetVolumeDBRangeResponse struct {
MinValue int16 `xml:"MinValue"`
MaxValue int16 `xml:"MaxValue"`
}
GetVolumeDBRange Response type.
type GetVolumeDBResponse ¶
type GetVolumeDBResponse struct {
CurrentVolume int16 `xml:"CurrentVolume"`
}
GetVolumeDB Response type.
type GetVolumeResponse ¶
type GetVolumeResponse struct {
CurrentVolume uint16 `xml:"CurrentVolume"`
}
GetVolume Response type.
type MuteChannelEnum ¶
type MuteChannelEnum string
const ( MuteChannel_Master MuteChannelEnum = "Master" MuteChannel_LF MuteChannelEnum = "LF" MuteChannel_RF MuteChannelEnum = "RF" )
type Property ¶
type Property struct {
XMLName xml.Name `xml:"property"`
LastChange *LastChange `xml:"LastChange"`
}
Property represents a single property in a UPnP event notification.
type RampToVolumeArgs ¶
type RampToVolumeArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel ChannelEnum `xml:"Channel"`
RampType RampTypeEnum `xml:"RampType"`
DesiredVolume uint16 `xml:"DesiredVolume"`
ResetVolumeAfter bool `xml:"ResetVolumeAfter"`
ProgramURI string `xml:"ProgramURI"`
}
RampToVolume Argument type.
type RampToVolumeResponse ¶
type RampToVolumeResponse struct {
RampTime uint32 `xml:"RampTime"`
}
RampToVolume Response type.
type RampTypeEnum ¶
type RampTypeEnum string
const ( RampType_SLEEP_TIMER_RAMP_TYPE RampTypeEnum = "SLEEP_TIMER_RAMP_TYPE" RampType_ALARM_RAMP_TYPE RampTypeEnum = "ALARM_RAMP_TYPE" RampType_AUTOPLAY_RAMP_TYPE RampTypeEnum = "AUTOPLAY_RAMP_TYPE" )
type ResetBasicEQArgs ¶
type ResetBasicEQArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
}
ResetBasicEQ Argument type.
type ResetBasicEQResponse ¶
type ResetBasicEQResponse struct {
Bass int16 `xml:"Bass"`
Treble int16 `xml:"Treble"`
Loudness bool `xml:"Loudness"`
LeftVolume uint16 `xml:"LeftVolume"`
RightVolume uint16 `xml:"RightVolume"`
}
ResetBasicEQ Response type.
type ResetExtEQArgs ¶
type ResetExtEQArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
EQType string `xml:"EQType"`
}
ResetExtEQ Argument type.
type RestoreVolumePriorToRampArgs ¶
type RestoreVolumePriorToRampArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel ChannelEnum `xml:"Channel"`
}
RestoreVolumePriorToRamp Argument type.
type RestoreVolumePriorToRampResponse ¶
type RestoreVolumePriorToRampResponse struct {
}
RestoreVolumePriorToRamp Response type.
type Service ¶
type Service struct {
LastChange *LastChange
// contains filtered or unexported fields
}
Service represents RenderingControl service.
func NewService ¶
func NewService(opts ...ServiceOption) *Service
NewService creates a new instance of the RenderingControl service. You must provide at least a location URL and an HTTP client using the options.
func (*Service) ControlEndpoint ¶
ControlEndpoint returns the control endpoint URL of the service. This is usually a URL relative to the device's base URL.
func (*Service) EventEndpoint ¶
EventEndpoint returns the event endpoint URL of the service. This is usually a URL relative to the device's base URL.
func (*Service) GetBass ¶
func (s *Service) GetBass(args *GetBassArgs) (*GetBassResponse, error)
GetBass calls the GetBass action on the service.
func (*Service) GetEQ ¶
func (s *Service) GetEQ(args *GetEQArgs) (*GetEQResponse, error)
GetEQ calls the GetEQ action on the service.
func (*Service) GetHeadphoneConnected ¶
func (s *Service) GetHeadphoneConnected(args *GetHeadphoneConnectedArgs) (*GetHeadphoneConnectedResponse, error)
GetHeadphoneConnected calls the GetHeadphoneConnected action on the service.
func (*Service) GetLoudness ¶
func (s *Service) GetLoudness(args *GetLoudnessArgs) (*GetLoudnessResponse, error)
GetLoudness calls the GetLoudness action on the service.
func (*Service) GetMute ¶
func (s *Service) GetMute(args *GetMuteArgs) (*GetMuteResponse, error)
GetMute calls the GetMute action on the service.
func (*Service) GetOutputFixed ¶
func (s *Service) GetOutputFixed(args *GetOutputFixedArgs) (*GetOutputFixedResponse, error)
GetOutputFixed calls the GetOutputFixed action on the service.
func (*Service) GetRoomCalibrationStatus ¶
func (s *Service) GetRoomCalibrationStatus(args *GetRoomCalibrationStatusArgs) (*GetRoomCalibrationStatusResponse, error)
GetRoomCalibrationStatus calls the GetRoomCalibrationStatus action on the service.
func (*Service) GetSupportsOutputFixed ¶
func (s *Service) GetSupportsOutputFixed(args *GetSupportsOutputFixedArgs) (*GetSupportsOutputFixedResponse, error)
GetSupportsOutputFixed calls the GetSupportsOutputFixed action on the service.
func (*Service) GetTreble ¶
func (s *Service) GetTreble(args *GetTrebleArgs) (*GetTrebleResponse, error)
GetTreble calls the GetTreble action on the service.
func (*Service) GetVolume ¶
func (s *Service) GetVolume(args *GetVolumeArgs) (*GetVolumeResponse, error)
GetVolume calls the GetVolume action on the service.
func (*Service) GetVolumeDB ¶
func (s *Service) GetVolumeDB(args *GetVolumeDBArgs) (*GetVolumeDBResponse, error)
GetVolumeDB calls the GetVolumeDB action on the service.
func (*Service) GetVolumeDBRange ¶
func (s *Service) GetVolumeDBRange(args *GetVolumeDBRangeArgs) (*GetVolumeDBRangeResponse, error)
GetVolumeDBRange calls the GetVolumeDBRange action on the service.
func (*Service) ParseEvent ¶
ParseEvent parses a UPnP event notification and updates the service's state variables accordingly. It returns a slice of updated state variable values.
func (*Service) RampToVolume ¶
func (s *Service) RampToVolume(args *RampToVolumeArgs) (*RampToVolumeResponse, error)
RampToVolume calls the RampToVolume action on the service.
func (*Service) ResetBasicEQ ¶
func (s *Service) ResetBasicEQ(args *ResetBasicEQArgs) (*ResetBasicEQResponse, error)
ResetBasicEQ calls the ResetBasicEQ action on the service.
func (*Service) ResetExtEQ ¶
func (s *Service) ResetExtEQ(args *ResetExtEQArgs) (*ResetExtEQResponse, error)
ResetExtEQ calls the ResetExtEQ action on the service.
func (*Service) RestoreVolumePriorToRamp ¶
func (s *Service) RestoreVolumePriorToRamp(args *RestoreVolumePriorToRampArgs) (*RestoreVolumePriorToRampResponse, error)
RestoreVolumePriorToRamp calls the RestoreVolumePriorToRamp action on the service.
func (*Service) SetBass ¶
func (s *Service) SetBass(args *SetBassArgs) (*SetBassResponse, error)
SetBass calls the SetBass action on the service.
func (*Service) SetChannelMap ¶
func (s *Service) SetChannelMap(args *SetChannelMapArgs) (*SetChannelMapResponse, error)
SetChannelMap calls the SetChannelMap action on the service.
func (*Service) SetEQ ¶
func (s *Service) SetEQ(args *SetEQArgs) (*SetEQResponse, error)
SetEQ calls the SetEQ action on the service.
func (*Service) SetLoudness ¶
func (s *Service) SetLoudness(args *SetLoudnessArgs) (*SetLoudnessResponse, error)
SetLoudness calls the SetLoudness action on the service.
func (*Service) SetMute ¶
func (s *Service) SetMute(args *SetMuteArgs) (*SetMuteResponse, error)
SetMute calls the SetMute action on the service.
func (*Service) SetOutputFixed ¶
func (s *Service) SetOutputFixed(args *SetOutputFixedArgs) (*SetOutputFixedResponse, error)
SetOutputFixed calls the SetOutputFixed action on the service.
func (*Service) SetRelativeVolume ¶
func (s *Service) SetRelativeVolume(args *SetRelativeVolumeArgs) (*SetRelativeVolumeResponse, error)
SetRelativeVolume calls the SetRelativeVolume action on the service.
func (*Service) SetRoomCalibrationStatus ¶
func (s *Service) SetRoomCalibrationStatus(args *SetRoomCalibrationStatusArgs) (*SetRoomCalibrationStatusResponse, error)
SetRoomCalibrationStatus calls the SetRoomCalibrationStatus action on the service.
func (*Service) SetTreble ¶
func (s *Service) SetTreble(args *SetTrebleArgs) (*SetTrebleResponse, error)
SetTreble calls the SetTreble action on the service.
func (*Service) SetVolume ¶
func (s *Service) SetVolume(args *SetVolumeArgs) (*SetVolumeResponse, error)
SetVolume calls the SetVolume action on the service.
func (*Service) SetVolumeDB ¶
func (s *Service) SetVolumeDB(args *SetVolumeDBArgs) (*SetVolumeDBResponse, error)
SetVolumeDB calls the SetVolumeDB action on the service.
type ServiceOption ¶
type ServiceOption func(*Service)
func WithClient ¶
func WithClient(c *http.Client) ServiceOption
func WithLocation ¶
func WithLocation(u *url.URL) ServiceOption
type SetBassArgs ¶
type SetBassArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
DesiredBass int16 `xml:"DesiredBass"`
}
SetBass Argument type.
type SetChannelMapArgs ¶
type SetChannelMapArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
ChannelMap string `xml:"ChannelMap"`
}
SetChannelMap Argument type.
type SetEQArgs ¶
type SetEQArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
EQType string `xml:"EQType"`
DesiredValue int16 `xml:"DesiredValue"`
}
SetEQ Argument type.
type SetLoudnessArgs ¶
type SetLoudnessArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel ChannelEnum `xml:"Channel"`
DesiredLoudness bool `xml:"DesiredLoudness"`
}
SetLoudness Argument type.
type SetMuteArgs ¶
type SetMuteArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel MuteChannelEnum `xml:"Channel"`
DesiredMute bool `xml:"DesiredMute"`
}
SetMute Argument type.
type SetOutputFixedArgs ¶
type SetOutputFixedArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
DesiredFixed bool `xml:"DesiredFixed"`
}
SetOutputFixed Argument type.
type SetRelativeVolumeArgs ¶
type SetRelativeVolumeArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel ChannelEnum `xml:"Channel"`
Adjustment int32 `xml:"Adjustment"`
}
SetRelativeVolume Argument type.
type SetRelativeVolumeResponse ¶
type SetRelativeVolumeResponse struct {
NewVolume uint16 `xml:"NewVolume"`
}
SetRelativeVolume Response type.
type SetRoomCalibrationStatusArgs ¶
type SetRoomCalibrationStatusArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
RoomCalibrationEnabled bool `xml:"RoomCalibrationEnabled"`
}
SetRoomCalibrationStatus Argument type.
type SetRoomCalibrationStatusResponse ¶
type SetRoomCalibrationStatusResponse struct {
}
SetRoomCalibrationStatus Response type.
type SetTrebleArgs ¶
type SetTrebleArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
DesiredTreble int16 `xml:"DesiredTreble"`
}
SetTreble Argument type.
type SetVolumeArgs ¶
type SetVolumeArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel ChannelEnum `xml:"Channel"`
DesiredVolume uint16 `xml:"DesiredVolume"`
}
SetVolume Argument type.
type SetVolumeDBArgs ¶
type SetVolumeDBArgs struct {
Xmlns string `xml:"xmlns:u,attr"`
InstanceID uint32 `xml:"InstanceID"`
Channel ChannelEnum `xml:"Channel"`
DesiredVolume int16 `xml:"DesiredVolume"`
}
SetVolumeDB Argument type.