Constructor

Receiver

new Receiver(label, friendlyName, opt_capabilities, opt_volume)

Describes the receiver running an application. Normally, these objects should not be created by the client.

Parameter

label

string

An identifier for the receiver.

friendlyName

string

The user-visible name of the receiver.

opt_capabilities

Optional

Array of chrome.cast.Capability

Set of receiver capabilities.

opt_volume

Optional

chrome.cast.Volume

The receiver's current volume.

Properties

capabilities

non-null Array of non-null chrome.cast.Capability

The capabilities of the receiver, for example audio and video.

displayStatus

chrome.cast.ReceiverDisplayStatus

Receiver status shown to the user in the extension UI. Only valid for CUSTOM receivers. To show the receiver as idle, set displayStatus to null.

friendlyName

string

The user given name (HTML-escaped) for the receiver. Mandatory.

isActiveInput

nullable boolean

The value reflects whether the cast device is the active input. If the HDMI input the Cast device is connected to supports CEC and the device can know the active status, this value will be provided. Otherwise, it is null.

label

string

An identifier for the receiver that is unique to the browser profile and the origin of the API client. It is stable across browser restarts, but may change if the user clears his local storage.

receiverType

non-null chrome.cast.ReceiverType

The type of receiver device. Mandatory.

volume

chrome.cast.Volume

The current volume of the receiver. If non-null, the volume's level and muted properties will always be set.