- CastConfigObject
- CastAdsController
- CastPlayer
- Parameters
- loadMedia
- getMediaInfo
- ready
- play
- pause
- reset
- destroy
- isLive
- isDvr
- seekToLiveEdge
- getStartTimeOfDvrWindow
- enableAdaptiveBitrate
- isAdaptiveBitrateEnabled
- getTracks
- getActiveTracks
- selectTrack
- hideTextTrack
- startCasting
- isCastAvailable
- stopCasting
- getCastSession
- ads
- textStyle
- textStyle
- currentTime
- currentTime
- duration
- volume
- volume
- paused
- ended
- seeking
- muted
- muted
- src
- poster
- playbackRate
- engineType
- type
- config
- Type
- isSupported
- defaultConfig
Type: Object
receiverApplicationId
string Cast application id.autoJoinPolicy
string Indicates if to join a running session on initialization. (optional, defaultchrome.cast.AutoJoinPolicy.ORIGIN_SCOPED
)liveEdgeThreshold
number Threshold from which you are not at the live edge. (optional, default5
)advertising
Object The advertising options. (optional, default{vast:false}
)advertising.vast
boolean Whether using VAST ad tags (false means using VMAP ad tags). (optional, defaultfalse
)
Cast Ads Controller.
Skips on an ad.
Returns void
Extends BaseRemotePlayer
Cast Sender Player.
config
CastConfigObject The cast configuration.remoteControl
RemoteControl The remote control.
Loads a media to the receiver application.
mediaInfo
ProviderMediaInfoObject The entry media info.options
Object? The request options. See chrome.cast.media.LoadRequest
Returns Promise<void> Promise to indicate load succeed or failed.
Gets the media Info.
Returns ProviderMediaInfoObject The media info.
The cast player readiness.
Returns Promise<any> Promise which resolved when the cast player is ready.
Start/resume playback.
Returns void
Pause playback.
Returns void
Stops and reset the cast player.
Returns void
Destroys the cast player.
Returns void
Returns boolean Whether the current playback is a live playback.
Returns boolean Whether the current live playback has DVR window. In case of non-live playback will return false.
Seeks to the live edge.
Returns void
Returns number The start time of the DVR window.
Enables automatic adaptive bitrate switching.
Returns void
Returns boolean Whether adaptive bitrate is enabled.
type
string? Track type.
Returns Array<Track> The cast player tracks.
Returns Object The cast player active tracks.
Select a certain track to be active.
track
Track The track to activate.
Returns void
Hides the active text track.
Returns void
Start casting.
Returns Promise<any> A promise to indicate session is starting, or failed
Returns boolean Whether casting is available.
Stops the current cast session.
Returns void
Gets the current remote session.
Returns RemoteSession The remote session.
Returns CastAdsController The cast ads controller.
Setter.
style
TextStyle The text style to set.
Returns void
Getter.
Returns TextStyle The current text style.
Setter.
to
number The number to set in seconds.
Returns void
Getter.
Returns number The current time in seconds.
Returns number The duration in seconds.
Setter.
vol
number The volume to set in the range of 0-1.
Returns void
Getter.
Returns number The current volume in the range of 0-1.
Returns boolean Whether the cast player is in paused state.
Returns boolean Whether the cast player is in ended state.
Returns boolean Whether the cast player is in seeking state.
Setter.
mute
boolean The mute value to set.
Returns void
Getter.
Returns boolean The muted state.
Returns string The current playing source url.
Returns string The current poster url.
Returns string The current playback rate.
Returns string The active engine type.
Returns string The remote player type.
Returns Object The runtime cast player config.
The remote player type.
Type: string
Returns boolean Whether the cast player is supported in the current runtime environment.
The default cast configuration.
Type: Object