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 disableBoolean -
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 trackAudioTrack Object with track data
-
timeShiftEnabled()
-
Get timeShiftEnabled
Returns:
if timeShift is enabled
- Type
- Boolean
EMP Html5 Player