Load a Manifest.startTime: Optional start time, in seconds, to begin playback. Defaults to 0 for VOD and to the live edge for live. Set a positive number to start with a certain offset the beginning. Set a negative number to start with a certain offset from the end. This is intended for use with live streams, to start at a fixed offset from the live edge.manifestMimeType: Optional mimetype registered using shaka.media.ManifestParser.register(mimeType, ParserClass)
Unload the current manifest and make the Player available for re-use.reinitializeMediaSource: If true, start reinitializing MediaSource right away. This can improve load() latency for MediaSource-based playbacks. Defaults to true.
Events
Event
Description
error
fired when shaka player errors
init-shaka-player
fired when shaka player is initialized
manifest-loaded
fired when shaka player loads the manifest file
CSS Custom Properties
Property
Description
--shaka-player-background-color
The background color of the video element. Default: black
--shaka-player-object-fit
object-fit property of the video element. Default: initial
--shaka-player-video-height
height property of the video element. Default: auto
--shaka-player-video-width
width property of the video element. Default: 100%