Classes

Enumerations

ActiveInputState

static

number

The possible states of the receiver active-input.

Value

ACTIVE_INPUT_STATE_UNKNOWN

Indicates that it is not known (and/or not possible to know) whether the Google cast device is the currently active video input. Active input state can only be reported when the Google cast device is connected to a TV or AVR with CEC support.

ACTIVE_INPUT_STATE_NO

Indicates that the Google cast device is not the currently active video input.

ACTIVE_INPUT_STATE_YES

Indicates that the Google cast device is the currently active video input.

CastContextEventType

static

string

The events that cast.framework.CastContext supports.

Value

CAST_STATE_CHANGED

Event to track cast icon state. Event data is of type cast.framework.CastStateEventData.

SESSION_STATE_CHANGED

Event to track current cast session. Event data is of type cast.framework.SessionStateEventData.

CastState

static

string

The possible casting states.

Value

NO_DEVICES_AVAILABLE

No cast devices are available.

NOT_CONNECTED

Cast devices are available, but a cast session is not established.

CONNECTING

Cast session is being established.

CONNECTED

Cast session is established.

LoggerLevel

static

number

Logging levels for cast framework.

Value

DEBUG

Debug logging (all messages).

INFO

Info logging (events, general logs).

WARNING

warning logging (warnings).

ERROR

Error logging (errors).

NONE

No logging.

RemotePlayerEventType

static

string

Event types for changes of cast.framework.RemotePlayer data.

Value

ANY_CHANGE

Any property has changed. Useful for an Angular binding application, where angular needs to be notified everytime a property is changed.

IS_CONNECTED_CHANGED

Property isConnected has changed.

IS_MEDIA_LOADED_CHANGED

Property isMediaLoaded has changed.

DURATION_CHANGED

Property duration has changed.

CURRENT_TIME_CHANGED

Property currentTime has changed.

IS_PAUSED_CHANGED

Property isPaused has changed.

VOLUME_LEVEL_CHANGED

Property volumeLevel has changed.

CAN_CONTROL_VOLUME_CHANGED

Property canControlVolume has changed.

IS_MUTED_CHANGED

Property isMuted has changed.

CAN_PAUSE_CHANGED

Property canPause has changed.

CAN_SEEK_CHANGED

Property canSeek has changed.

DISPLAY_NAME_CHANGED

Property displayName has changed.

STATUS_TEXT_CHANGED

Property statusText has changed.

TITLE_CHANGED

Property title has changed.

DISPLAY_STATUS_CHANGED

Property displayStatus has changed.

MEDIA_INFO_CHANGED

Property mediaInfo has changed.

IMAGE_URL_CHANGED

Property imageUrl has changed.

PLAYER_STATE_CHANGED

Property playerState has changed.

SessionEventType

static

string

The events that cast.framework.CastSession supports.

Value

APPLICATION_STATUS_CHANGED

Application status text has changed. Event data is of type cast.framework.ApplicationStatusEventData.

APPLICATION_METADATA_CHANGED

Application metadata has changed. Event data is of type cast.framework.ApplicationMetadataEventData.

ACTIVE_INPUT_STATE_CHANGED

Receiver active input state has changed. Event data is of type cast.framework.ActiveInputStateEventData.

VOLUME_CHANGED

Receiver volume or mute status has changed. Event data is of type cast.framework.VolumeEventData.

MEDIA_SESSION

Started a new media session. Event data is of type cast.framework.MediaSessionEventData.

SessionState

static

string

The possible cast session states.

Value

NO_SESSION

Cast session is not established.

SESSION_STARTING

Cast session is being established.

SESSION_STARTED

Cast session is established.

SESSION_START_FAILED

Cast session failed to start. Failure reason is provided in the event data cast.framework.SessionStateEventData#errorCode field.

SESSION_ENDING

Cast session is being disconnected.

SESSION_ENDED

Cast session is disconnected.

SESSION_RESUMED

Connection to an already existing session is established.

Properties

ActiveInputState

static

number

The possible states of the receiver active-input.

Value

ACTIVE_INPUT_STATE_UNKNOWN

Indicates that it is not known (and/or not possible to know) whether the Google cast device is the currently active video input. Active input state can only be reported when the Google cast device is connected to a TV or AVR with CEC support.

ACTIVE_INPUT_STATE_NO

Indicates that the Google cast device is not the currently active video input.

ACTIVE_INPUT_STATE_YES

Indicates that the Google cast device is the currently active video input.

CastContextEventType

static

string

The events that cast.framework.CastContext supports.

Value

CAST_STATE_CHANGED

Event to track cast icon state. Event data is of type cast.framework.CastStateEventData.

SESSION_STATE_CHANGED

Event to track current cast session. Event data is of type cast.framework.SessionStateEventData.

CastState

static

string

The possible casting states.

Value

NO_DEVICES_AVAILABLE

No cast devices are available.

NOT_CONNECTED

Cast devices are available, but a cast session is not established.

CONNECTING

Cast session is being established.

CONNECTED

Cast session is established.

LoggerLevel

static

number

Logging levels for cast framework.

Value

DEBUG

Debug logging (all messages).

INFO

Info logging (events, general logs).

WARNING

warning logging (warnings).

ERROR

Error logging (errors).

NONE

No logging.

RemotePlayerEventType

static

string

Event types for changes of cast.framework.RemotePlayer data.

Value

ANY_CHANGE

Any property has changed. Useful for an Angular binding application, where angular needs to be notified everytime a property is changed.

IS_CONNECTED_CHANGED

Property isConnected has changed.

IS_MEDIA_LOADED_CHANGED

Property isMediaLoaded has changed.

DURATION_CHANGED

Property duration has changed.

CURRENT_TIME_CHANGED

Property currentTime has changed.

IS_PAUSED_CHANGED

Property isPaused has changed.

VOLUME_LEVEL_CHANGED

Property volumeLevel has changed.

CAN_CONTROL_VOLUME_CHANGED

Property canControlVolume has changed.

IS_MUTED_CHANGED

Property isMuted has changed.

CAN_PAUSE_CHANGED

Property canPause has changed.

CAN_SEEK_CHANGED

Property canSeek has changed.

DISPLAY_NAME_CHANGED

Property displayName has changed.

STATUS_TEXT_CHANGED

Property statusText has changed.

TITLE_CHANGED

Property title has changed.

DISPLAY_STATUS_CHANGED

Property displayStatus has changed.

MEDIA_INFO_CHANGED

Property mediaInfo has changed.

IMAGE_URL_CHANGED

Property imageUrl has changed.

PLAYER_STATE_CHANGED

Property playerState has changed.

SessionEventType

static

string

The events that cast.framework.CastSession supports.

Value

APPLICATION_STATUS_CHANGED

Application status text has changed. Event data is of type cast.framework.ApplicationStatusEventData.

APPLICATION_METADATA_CHANGED

Application metadata has changed. Event data is of type cast.framework.ApplicationMetadataEventData.

ACTIVE_INPUT_STATE_CHANGED

Receiver active input state has changed. Event data is of type cast.framework.ActiveInputStateEventData.

VOLUME_CHANGED

Receiver volume or mute status has changed. Event data is of type cast.framework.VolumeEventData.

MEDIA_SESSION

Started a new media session. Event data is of type cast.framework.MediaSessionEventData.

SessionState

static

string

The possible cast session states.

Value

NO_SESSION

Cast session is not established.

SESSION_STARTING

Cast session is being established.

SESSION_STARTED

Cast session is established.

SESSION_START_FAILED

Cast session failed to start. Failure reason is provided in the event data cast.framework.SessionStateEventData#errorCode field.

SESSION_ENDING

Cast session is being disconnected.

SESSION_ENDED

Cast session is disconnected.

SESSION_RESUMED

Connection to an already existing session is established.

VERSION

constant   static

string

Current sender Cast Framework version.

Method

setLoggerLevel

static

setLoggerLevel(level)

Set the logging level for cast.

Parameter

level

cast.framework.LoggerLevel

Logging level.

Value must not be null.

Abstract type

EventType

static

(non-null cast.framework.CastContextEventType, non-null cast.framework.SessionEventType, or non-null cast.framework.RemotePlayerEventType)

The supported event types.