cast.player.api.VERSION
Version of the cast media player library.
cast.player.api.setLoggerLevel
static void
cast.player.api.setLoggerLevel(level)
Sets logging verbosity level.
- Parameters:
- cast.player.api.LoggerLevel level
- The logging level.
player.StreamingProtocol#getStreamCount
number
getStreamCount()
Gets the stream count for the media.
- Returns:
- number Stream count.
player.StreamingProtocol#getStreamInfo
cast.player.api.StreamInfo
getStreamInfo(streamIndex)
Gets stream information that includes codecs, mime type, and bitrates.
Must not be null.
Must not be null.
- Parameters:
- number streamIndex
- Stream index.
- Returns:
- cast.player.api.StreamInfo Stream information. Must not be null.
player.StreamingProtocol#enableStream
void
enableStream(streamIndex, enable)
Sets the enabled state of the stream.
- Parameters:
- number streamIndex
- Stream index.
- boolean enable
- Whether to enable or disable the stream.
player.StreamingProtocol#isStreamEnabled
boolean
isStreamEnabled(streamIndex)
Gets the enabled state of the stream.
- Parameters:
- number streamIndex
- Stream index.
- Returns:
- boolean Whether the stream is enabled or disabled.
player.StreamingProtocol#getQualityLevel
number
getQualityLevel(streamIndex)
Gets the quality level used to play the stream.
- Parameters:
- number streamIndex
- Stream index.
- Returns:
- number Adaptive bitrate quality level.
cast.player.api.CaptionsType
Captions type.
| Values |
|---|
cast.player.api.ContentProtection
Content protection type.
| Values |
|---|
cast.player.api.ErrorCode
Errors that can be reported by the player to the host.
| Values |
|---|
cast.player.api.HlsSegmentFormat
The format of HLS media segment.
| Values |
|---|
cast.player.api.Host
Host is used by the player for interacting with the application.
| Functions |
|
|---|---|
| Properties |
cast.player.api.LoggerLevel
Represents logger levels.
| Values |
|---|
cast.player.api.Player
Communicates with the media element and media source.
| Functions |
|---|
cast.player.api.RequestInfo
XML HTTP request information.
| Properties |
|---|
cast.player.api.RequestStatus
Network request status information.
| Properties |
|---|
cast.player.api.StreamInfo
Stream information.
| Properties |
|---|