Classes

Namespace

Enumerations

IdleReason

static

string

Possible reason why a media is idle.

Value

CANCELLED

A sender requested to stop playback using the STOP command.

INTERRUPTED

A sender requested playing a different media using the LOAD command.

FINISHED

The media playback completed.

ERROR

The media was interrupted due to an error, this could be for example if the player could not download media due to networking errors.

MediaCommand

static

string

Possible media commands supported by the receiver application.

Value

PAUSE

SEEK

STREAM_VOLUME

STREAM_MUTE

MetadataType

static

number

Possible types of media metadata.

Value

GENERIC

Generic template suitable for most media types. Used by chrome.cast.media.GenericMediaMetadata.

MOVIE

A full length movie. Used by chrome.cast.media.MovieMediaMetadata.

TV_SHOW

An episode of a TV series. Used by chrome.cast.media.TvShowMediaMetadata.

MUSIC_TRACK

A music track. Used by chrome.cast.media.MusicTrackMediaMetadata.

PHOTO

Photo. Used by chrome.cast.media.PhotoMediaMetadata.

PlayerState

static

string

Possible states of the media player.

Value

IDLE

No media is loaded into the player.

PLAYING

The media is playing.

PAUSED

The media is not playing.

BUFFERING

Player is in PLAY mode but not actively playing content. currentTime will not change.

RepeatMode

static

string

Possible states of queue repeat mode.

Value

OFF

Items are played in order, and when the queue is completed (the last item has ended) the media session is terminated.

ALL

The items in the queue will be played indefinitely. When the last item has ended, the first item will be played again.

SINGLE

The current item will be repeated indefinitely.

ALL_AND_SHUFFLE

The items in the queue will be played indefinitely. When the last item has ended, the list of items will be randomly shuffled by the receiver, and the queue will continue to play starting from the first item of the shuffled items.

ResumeState

static

string

States of the media player after resuming.

Value

PLAYBACK_START

Force media to start.

PLAYBACK_PAUSE

Force media to pause.

StreamType

static

string

Possible media stream types.

Value

BUFFERED

Stored media streamed from an existing data store.

LIVE

Live media generated on the fly.

OTHER

None of the above.

TextTrackEdgeType

static

string

Possible text track edge types.

Value

NONE

OUTLINE

DROP_SHADOW

RAISED

DEPRESSED

TextTrackFontGenericFamily

static

string

Possible text track font generic family.

Value

SANS_SERIF

MONOSPACED_SANS_SERIF

SERIF

MONOSPACED_SERIF

CASUAL

CURSIVE

SMALL_CAPITALS

TextTrackFontStyle

static

string

Possible text track font style.

Value

NORMAL

BOLD

BOLD_ITALIC

ITALIC

TextTrackType

static

string

Possible text track types.

Value

SUBTITLES

Transcription or translation of the dialogue, suitable for when the sound is available but not understood (e.g. because the user does not understand the language of the media resource's soundtrack).

CAPTIONS

Transcription or translation of the dialogue, sound effects, relevant musical cues, and other relevant audio information, suitable for when the soundtrack is unavailable (e.g. because it is muted or because the user is deaf). Displayed over the video; labeled as appropriate for the hard-of-hearing.

DESCRIPTIONS

Textual descriptions of the video component of the media resource, intended for audio synthesis when the visual component is unavailable (e.g. because the user is interacting with the application without a screen, or because the user is blind). Synthesized as separate audio track.

CHAPTERS

Chapter titles, intended to be used for navigating the media resource.

METADATA

Tracks intended for use from script.

TextTrackWindowType

static

string

Possible text track window types.

Value

NONE

NORMAL

ROUNDED_CORNERS

TrackType

static

string

Possible media track types.

Value

TEXT

AUDIO

VIDEO

Properties

DEFAULT_MEDIA_RECEIVER_APP_ID

constant   static

string

The app ID of the default media player.

IdleReason

static

string

Possible reason why a media is idle.

Value

CANCELLED

A sender requested to stop playback using the STOP command.

INTERRUPTED

A sender requested playing a different media using the LOAD command.

FINISHED

The media playback completed.

ERROR

The media was interrupted due to an error, this could be for example if the player could not download media due to networking errors.

MediaCommand

static

string

Possible media commands supported by the receiver application.

Value

PAUSE

SEEK

STREAM_VOLUME

STREAM_MUTE

MetadataType

static

number

Possible types of media metadata.

Value

GENERIC

Generic template suitable for most media types. Used by chrome.cast.media.GenericMediaMetadata.

MOVIE

A full length movie. Used by chrome.cast.media.MovieMediaMetadata.

TV_SHOW

An episode of a TV series. Used by chrome.cast.media.TvShowMediaMetadata.

MUSIC_TRACK

A music track. Used by chrome.cast.media.MusicTrackMediaMetadata.

PHOTO

Photo. Used by chrome.cast.media.PhotoMediaMetadata.

PlayerState

static

string

Possible states of the media player.

Value

IDLE

No media is loaded into the player.

PLAYING

The media is playing.

PAUSED

The media is not playing.

BUFFERING

Player is in PLAY mode but not actively playing content. currentTime will not change.

RepeatMode

static

string

Possible states of queue repeat mode.

Value

OFF

Items are played in order, and when the queue is completed (the last item has ended) the media session is terminated.

ALL

The items in the queue will be played indefinitely. When the last item has ended, the first item will be played again.

SINGLE

The current item will be repeated indefinitely.

ALL_AND_SHUFFLE

The items in the queue will be played indefinitely. When the last item has ended, the list of items will be randomly shuffled by the receiver, and the queue will continue to play starting from the first item of the shuffled items.

ResumeState

static

string

States of the media player after resuming.

Value

PLAYBACK_START

Force media to start.

PLAYBACK_PAUSE

Force media to pause.

StreamType

static

string

Possible media stream types.

Value

BUFFERED

Stored media streamed from an existing data store.

LIVE

Live media generated on the fly.

OTHER

None of the above.

TextTrackEdgeType

static

string

Possible text track edge types.

Value

NONE

OUTLINE

DROP_SHADOW

RAISED

DEPRESSED

TextTrackFontGenericFamily

static

string

Possible text track font generic family.

Value

SANS_SERIF

MONOSPACED_SANS_SERIF

SERIF

MONOSPACED_SERIF

CASUAL

CURSIVE

SMALL_CAPITALS

TextTrackFontStyle

static

string

Possible text track font style.

Value

NORMAL

BOLD

BOLD_ITALIC

ITALIC

TextTrackType

static

string

Possible text track types.

Value

SUBTITLES

Transcription or translation of the dialogue, suitable for when the sound is available but not understood (e.g. because the user does not understand the language of the media resource's soundtrack).

CAPTIONS

Transcription or translation of the dialogue, sound effects, relevant musical cues, and other relevant audio information, suitable for when the soundtrack is unavailable (e.g. because it is muted or because the user is deaf). Displayed over the video; labeled as appropriate for the hard-of-hearing.

DESCRIPTIONS

Textual descriptions of the video component of the media resource, intended for audio synthesis when the visual component is unavailable (e.g. because the user is interacting with the application without a screen, or because the user is blind). Synthesized as separate audio track.

CHAPTERS

Chapter titles, intended to be used for navigating the media resource.

METADATA

Tracks intended for use from script.

TextTrackWindowType

static

string

Possible text track window types.

Value

NONE

NORMAL

ROUNDED_CORNERS

TrackType

static

string

Possible media track types.

Value

TEXT

AUDIO

VIDEO