Class: Chromecast

Chromecast

Chromecast Media Controller - Wrapper for HTML5 Media API


new Chromecast(player [, options] [, ready])

Create a Chromecast tech object

Parameters:
Name Type Argument Description
player Player | Object
options Array.<Object> <optional>

Object of option names and values

ready function <optional>

Ready callback function

Extends

  • Tech

Methods


disableTimeShift(disable)

Disables timeshifting

Parameters:
Name Type Description
disable Boolean

ended()

Returns true if the video has ended

We check for 'idle' which means there is no active playback.

Returns:
Type
boolean

setCurrentAudioTrack(track)

Sets the current audio track.

Parameters:
Name Type Description
track AudioTrack

Object with track data


timeShiftEnabled()

Get timeShiftEnabled

Returns:

if timeShift is enabled

Type
Boolean