AI-generated Key Takeaways
-
The
cast.framework
namespace provides classes and functionalities for building Cast receiver applications. -
It includes core classes like
PlayerManager
to control media playback andCastReceiverContext
for SDK initialization. -
It offers managers for audio tracks, text tracks, and queues to handle different media aspects.
-
Developers can leverage enumerations for content protection types, logger levels, and Shaka Player variants.
-
The namespace also encompasses sub-namespaces like
events
,messages
, andui
for handling specific functionalities within the Cast receiver application.
cast. framework
This is the cast.framework
namespace.
Classes
AudioTracksManager
Manages audio tracks.
CastReceiverContext
Manages loading of underlying libraries and initializes underlying cast receiver SDK.
CastReceiverOptions
Cast receiver context options. All properties are optional.
DashTimedMetadata
Contains DASH-specific timed metadata properties found in the EventStream property. https://dashif-documents.azurewebsites.net/Events/master/event.html#detailed-processing
HlsTimedMetadata
Contains HLS-specific timed metadata properties found in the #EXT-X-DATERANGE property. https://tools.ietf.org/html/draft-pantos-hls-rfc8216bis-06#section-4.4.5.1
NetworkRequestInfo
HTTP(s) Request information.
NetworkResponseInfo
HTTP(s) Response information.
PlaybackConfig
Configuration to customize playback behavior.
PlayerManager
Controls and monitors media playback.
QueueBase
Base implementation of a queue.
QueueManager
QueueManager exposes several queue manipulation APIs to developers.
TextTracksManager
Manages text tracks.
TimedMetadata
Timed metadata generic properties.
Namespaces
breaks
events
messages
system
ui
Enumerations
ContentProtection
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
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
string
Represents variants of Shaka Player that could be loaded.
Value |
|
---|---|
STANDARD |
string The standard, default build. |
DEBUG |
string A debug build. |
Properties
ContentProtection
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
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
string
Represents variants of Shaka Player that could be loaded.
Value |
|
---|---|
STANDARD |
string The standard, default build. |
DEBUG |
string A debug build. |
VERSION
string
Web Receiver SDK version.