Documentation ¶
Index ¶
- func FindDevices(timeout time.Duration, devices chan<- *Device)
- type Device
- func (device *Device) GetMediaStatus(timeout time.Duration) []*media.MediaStatus
- func (device *Device) GetStatus(timeout time.Duration) *receiver.Status
- func (device *Device) Play()
- func (device *Device) PlayMedia(URL string, MIMEType string)
- func (device *Device) PlayYoutubeVideo(videoID string)
- func (device *Device) QuitApplication(timeout time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindDevices ¶
FindDevices searches the LAN for chromecast devices via mDNS and sends them to a channel.
Types ¶
type Device ¶
type Device struct { ReceiverController *controllers.ReceiverController MediaController *controllers.MediaController YoutubeController *controllers.YoutubeController // contains filtered or unexported fields }
Device Object to run basic chromecast commands
func (*Device) GetMediaStatus ¶
func (device *Device) GetMediaStatus(timeout time.Duration) []*media.MediaStatus
GetMediaStatus of current media controller
func (*Device) PlayYoutubeVideo ¶
PlayYoutubeVideo launches the youtube app and tries to play the video based on its id.
func (*Device) QuitApplication ¶
QuitApplication that is currently running on the device
Directories ¶
Path | Synopsis |
---|---|
Package api is a generated protocol buffer package.
|
Package api is a generated protocol buffer package. |
examples
|
|
Click to show internal directories.
Click to hide internal directories.