Documentation ¶
Index ¶
- Constants
- func ConnectedClient(ctx context.Context, addr string, logger chromecast.Logger) (*client.Client, error)
- func FirstClientWithStatus(ctx context.Context, logger chromecast.Logger, ...) (chromecast.Client, chromecast.Status, error)
- func ReadStdinKeyPresses(ctx context.Context, out chan<- KeyPress)
- type KeyPress
- type KeyType
Constants ¶
View Source
const ( Up byte = 65 + iota Down Right Left )
Arrows
Variables ¶
This section is empty.
Functions ¶
func ConnectedClient ¶
func ConnectedClient(ctx context.Context, addr string, logger chromecast.Logger) (*client.Client, error)
ConnectedClient will create a client and keep it connected
func FirstClientWithStatus ¶
func FirstClientWithStatus(ctx context.Context, logger chromecast.Logger, matchers ...discovery.DeviceMatcher) (chromecast.Client, chromecast.Status, error)
FirstClientWithStatus find a device, connects a client and get its status (and is verbose)
func ReadStdinKeyPresses ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.