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.ReceiverStatus
- 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) GetStatus ¶
func (device *Device) GetStatus(timeout time.Duration) *receiver.ReceiverStatus
GetStatus of the device.
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
|
|
|
Basic
command
|
|
|
DisplayPicture
command
|
|
|
DisplayURL
command
|
|
|
Internals
command
|
|
|
PlayAudio
command
|
|
|
PlayVideo
command
|
|
|
PlayYoutubeVideo
command
|
|
|
UseSubtitles
command
|
|
|
UseVideoControls
command
|
|
|
YoutubeVideoControls
command
|
|
Click to show internal directories.
Click to hide internal directories.