Documentation
¶
Index ¶
- func DeviceProperties(url string) (upnpDevice_XML, error)
- func Discover(filter string, manufacturer string, devType string) []device.DeviceInfo
- type GetCurrentMuteStatusResponse
- type GetDeviceVolumeResponse
- type GetPositionInfoResponse
- type Item_XML
- type TrackMetaData_XML
- type UpnpClient
- func (s *UpnpClient) GetCurrentMedia() (interface{}, error)
- func (s *UpnpClient) GetCurrentMuteStatus() (bool, error)
- func (s *UpnpClient) GetCurrentVolume() (int, error)
- func (s *UpnpClient) GetPositionInfo() (map[string]string, error)
- func (s *UpnpClient) Pause() error
- func (s *UpnpClient) PlayCurrentMedia() error
- func (s *UpnpClient) PlayNext() error
- func (s *UpnpClient) PlayPrevious() error
- func (s *UpnpClient) SetCurrentMedia(url string) error
- func (s *UpnpClient) SetVolume(volume int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceProperties ¶
Types ¶
type GetCurrentMuteStatusResponse ¶
type GetCurrentMuteStatusResponse struct {
Envelope struct {
Body struct {
GetMuteResponse struct {
CurrentMute string `json:"CurrentMute"`
} `json:"GetMuteResponse"`
} `json:"Body"`
} `json:"Envelope"`
}
type GetDeviceVolumeResponse ¶
type GetDeviceVolumeResponse struct {
Envelope struct {
Body struct {
GetVolumeResponse struct {
CurrentVolume string `json:"CurrentVolume"`
} `json:"GetVolumeResponse"`
} `json:"Body"`
} `json:"Envelope"`
}
type GetPositionInfoResponse ¶
type TrackMetaData_XML ¶
type UpnpClient ¶
func (*UpnpClient) GetCurrentMedia ¶
func (s *UpnpClient) GetCurrentMedia() (interface{}, error)
GetCurrentMedia will return the status of the current media playing
TODO
- This has to been tested with any bad input, should be regarded as not stable.
- This requires to be tested, it has not been ran to close any applications yet.
func (*UpnpClient) GetCurrentMuteStatus ¶
func (s *UpnpClient) GetCurrentMuteStatus() (bool, error)
GetCurrentMuteStatus returns true if and only if the TV is currently muted
TODO
- This has to been tested with any bad input, should be regarded as not stable.
func (*UpnpClient) GetCurrentVolume ¶
func (s *UpnpClient) GetCurrentVolume() (int, error)
GetCurrentVolume returns the value of the current volume level
TODO
- This has to been tested with any bad input, should be regarded as not stable.
func (*UpnpClient) GetPositionInfo ¶
func (s *UpnpClient) GetPositionInfo() (map[string]string, error)
GetPositionInfo will return the status of the current media playing
func (*UpnpClient) PlayCurrentMedia ¶
func (s *UpnpClient) PlayCurrentMedia() error
PlayCurrentMedia will attempt to play the current media already set on the display.
TODO
- This has to been tested with any bad input, should be regarded as not stable.
- This requires to be tested, it has not been ran to close any applications yet.
func (*UpnpClient) PlayNext ¶
func (s *UpnpClient) PlayNext() error
PlayNext will attempt to play the next media in playlist.
func (*UpnpClient) PlayPrevious ¶
func (s *UpnpClient) PlayPrevious() error
PlayPrev will attempt to play the next media in playlist.
func (*UpnpClient) SetCurrentMedia ¶
func (s *UpnpClient) SetCurrentMedia(url string) error
SetCurrentMedia will tell the display to play the current media via the URL.
TODO
- This has to been tested with any bad input, should be regarded as not stable.
- This requires to be tested, it has not been ran to close any applications yet.
func (*UpnpClient) SetVolume ¶
func (s *UpnpClient) SetVolume(volume int) error
SetVolume will update the current volume of the display to the provided value.
TODO
- This has to been tested with any bad input, should be regarded as not stable.