Google Cast Media Player Library Reference (Beta)

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.
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.
Captions type.
Values
Content protection type.
Values
Errors that can be reported by the player to the host.
Values
The format of HLS media segment.
Values
Host is used by the player for interacting with the application.
Functions
Properties
Represents logger levels.
Values
Communicates with the media element and media source.
Functions
XML HTTP request information.
Properties
Network request status information.
Properties
Stream information.
Properties

Index of all classes and functions

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.