Documentation ¶
Index ¶
- Constants
- Variables
- func BeginDiscover(ctx context.Context) (<-chan castdns.CastEntry, error)
- func DiscoverCastDNSEntries(ctx context.Context, iface *net.Interface, ch chan castdns.CastEntry) error
- func DiscoverCastDNSEntryByUuid(ctx context.Context, uuid string) (castdns.CastEntry, error)
- func HasVideoOut(entry dns.CastEntry) (bool, error)
- type Capability
- type Device
- type Option
Constants ¶
View Source
const ( StatePlaying = "PLAYING" StateBuffering = "BUFFERING" StateAd = 1081 NoMutedSegment = -1 )
Variables ¶
View Source
var ErrDeviceNotFound = errors.New("device not found")
View Source
var ErrMissingCapabilities = errors.New("capabilities not found")
Functions ¶
func BeginDiscover ¶ added in v0.1.0
func DiscoverCastDNSEntries ¶
Types ¶
type Capability ¶ added in v0.2.0
type Capability uint8
const ( VideoOut Capability = 1 << iota VideoIn AudioOut AudioIn DevMode )
func (*Capability) UnmarshalString ¶ added in v0.2.0
func (c *Capability) UnmarshalString(s string) error
type Device ¶ added in v0.4.0
type Device struct {
// contains filtered or unexported fields
}
func (*Device) BeginTick ¶ added in v0.4.0
func (d *Device) BeginTick(opts ...application.ApplicationOption) error
Click to show internal directories.
Click to hide internal directories.