Constructor

SessionRequest

new SessionRequest(appId, opt_capabilities, opt_timeout)

A request to start or connect to a session.

Parameter

appId

string

The receiver application id.

opt_capabilities

Optional

Array of chrome.cast.Capability

Required capabilities for the receiver.

Value must not be null.

opt_timeout

Optional

number

Optional timeout for requesting a session for this application.

Properties

appId

string

The receiver application id.

capabilities

non-null Array of chrome.cast.Capability

Capabilities required of the receiver device.

language

nullable string

Optional language to add to the Accept-Language header value when launching the receiver application. Ignored if joining an already existing session. The value is represented as ' - ' tag as per RFC 5646. For example 'es-ES'.

requestSessionTimeout

number

The timeout used for requesting a session for the application in milliseconds. Defaults to the value of chrome.cast.timeout.requestSession.