Namespace: framework

  • The cast.framework namespace provides classes and interfaces for managing audio and text tracks, handling playback, controlling queues, and configuring the Cast receiver.

  • Key classes include AudioTracksManager, TextTracksManager, PlayerManager, and QueueManager for media control, and CastReceiverContext and CastReceiverOptions for receiver initialization and configuration.

  • The framework includes specific timed metadata classes for DASH and HLS streams.

  • Enumerations are provided for content protection types, logger levels, and Shaka Player variants.

Classes

Namespaces

Enumerations

ContentProtection

static

string

Content protection type.

Value

NONE

string

No content protection.

CLEARKEY

string

Clearkey system.

PLAYREADY

string

PlayReady DRM.

DEPRECATED: PlayReady is not supported on all Cast devices. Please use Widevine.

WIDEVINE

string

Widevine DRM.

LoggerLevel

static

number

Represents logger levels.

Value

DEBUG

number

Debug logging (all messages).

VERBOSE

number

Verbose logging (sender messages).

INFO

number

Info logging (events, general logs).

WARNING

number

warning logging (warnings).

ERROR

number

Error logging (errors).

NONE

number

No logging.

ShakaVariant

static

string

Represents variants of Shaka Player that could be loaded.

Value

STANDARD

string

The standard, default build.

DEBUG

string

A debug build.

Properties

ContentProtection

static

string

Content protection type.

Value

NONE

string

No content protection.

CLEARKEY

string

Clearkey system.

PLAYREADY

string

PlayReady DRM.

DEPRECATED: PlayReady is not supported on all Cast devices. Please use Widevine.

WIDEVINE

string

Widevine DRM.

LoggerLevel

static

number

Represents logger levels.

Value

DEBUG

number

Debug logging (all messages).

VERBOSE

number

Verbose logging (sender messages).

INFO

number

Info logging (events, general logs).

WARNING

number

warning logging (warnings).

ERROR

number

Error logging (errors).

NONE

number

No logging.

ShakaVariant

static

string

Represents variants of Shaka Player that could be loaded.

Value

STANDARD

string

The standard, default build.

DEBUG

string

A debug build.

VERSION

constant   static

string

Web Receiver SDK version.