Documentation ¶
Index ¶
- Constants
- Variables
- type App
- type Command
- type Launcher
- func (l Launcher) AmpController() chromecast.AmpController
- func (l Launcher) Launch(appID string, statuses ...chromecast.Status) (st chromecast.Status, err error)
- func (l Launcher) Mute(muted bool) (st chromecast.Status, err error)
- func (l Launcher) SetVolume(level float64) (st chromecast.Status, err error)
- func (l Launcher) Status() (st chromecast.Status, err error)
- func (l Launcher) Stop() (st chromecast.Status, err error)
- type Map
- type Type
Constants ¶
View Source
const DefaultDestination = "receiver-0"
View Source
const DefaultSource = "sender-0"
Variables ¶
View Source
var Close = Command{ Envelope: connectionEnv, Payload: Type("CLOSE"), }
View Source
var Connect = Command{ Envelope: connectionEnv, Payload: Type("CONNECT"), }
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Envelope chromecast.Envelope Client chromecast.Client }
func ConnectFromStatus ¶
func ConnectFromStatus(client chromecast.Client, st chromecast.Status, namespace string) (*App, error)
func LaunchAndConnect ¶
func LaunchAndConnect(client chromecast.Client, id string, statuses ...chromecast.Status) (*App, error)
type Launcher ¶
type Launcher struct {
Requester chromecast.Requester
}
func (Launcher) AmpController ¶
func (l Launcher) AmpController() chromecast.AmpController
AmpController returns an AmpController
func (Launcher) Launch ¶
func (l Launcher) Launch(appID string, statuses ...chromecast.Status) (st chromecast.Status, err error)
Launch will launch the given app, except if it is found running in one of the optional statuses
type Map ¶
type Map map[string]interface{}
func (Map) SetRequestID ¶
SetRequestID helps fullfills the chromecast.IdentifiablePayload interface
Click to show internal directories.
Click to hide internal directories.