Documentation ¶
Overview ¶
Package bravia provides a struct for controling Sony BRAVIA displays over IP. The BRAVIA REST API spec can be found at https://pro-bravia.sony.net/develop/integrate/rest-api/spec/index.html.
This has been tested with Sony XBR TVs.
Index ¶
- type Display
- func (d *Display) AudioVideoInputs(ctx context.Context) (map[string]string, error)
- func (d *Display) Blank(ctx context.Context) (bool, error)
- func (d *Display) Healthy(ctx context.Context) error
- func (d *Display) Info(ctx context.Context) (interface{}, error)
- func (d *Display) Mutes(ctx context.Context, blocks []string) (map[string]bool, error)
- func (d *Display) Power(ctx context.Context) (bool, error)
- func (d *Display) SetAudioVideoInput(ctx context.Context, _, input string) error
- func (d *Display) SetBlank(ctx context.Context, blanked bool) error
- func (d *Display) SetMute(ctx context.Context, block string, mute bool) error
- func (d *Display) SetPower(ctx context.Context, power bool) error
- func (d *Display) SetVolume(ctx context.Context, block string, vol int) error
- func (d *Display) Volumes(ctx context.Context, blocks []string) (map[string]int, error)
- type Error
- type Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Display ¶ added in v0.2.0
type Display struct { Address string Log *zap.Logger RequestDelay time.Duration // contains filtered or unexported fields }
func (*Display) AudioVideoInputs ¶ added in v0.2.0
func (*Display) SetAudioVideoInput ¶ added in v0.2.0
SetAudioVideoInput sets the input of the display to the given input. Input format is everything tha comes after 'extInput:'. Examples can be found at https://pro-bravia.sony.net/develop/integrate/rest-api/spec/resource-uri-list/index.html.
func (*Display) SetMute ¶ added in v0.2.0
SetMute sets mute on all blocks, not just the given block. The bravia API does not currently support setting mute on a specific block.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.