Class: CastOptions

  • The cast.framework.CastOptions class defines options for Google Cast pages.

  • The constructor allows for optional parameters to copy options from another CastOptions object.

  • Properties include settings for Android Receiver compatibility, session auto-join policy, sender credentials, language, receiver application ID, and resuming saved sessions.

Constructor

CastOptions

new CastOptions(opt_options)

Parameter

opt_options

Optional

cast.framework.CastOptions

Optional options to copy from. Only defined value are used, otherwise the default value is used.

Value must not be null.

Properties

androidReceiverCompatible

boolean

Indicates if the app is compatible with an Android Receiver.

autoJoinPolicy

non-null chrome.cast.AutoJoinPolicy

Indicates if to join a running session on initialization.

credentialsData

nullable chrome.cast.CredentialsData

Credentials data used to identify the credentials of the sender.

language

nullable string

Language to use.

receiverApplicationId

nullable string

Cast application id.

resumeSavedSession

boolean

If true, a session will be re-joined without reloading the page.