Global

Type Definitions

}

Type:
Properties:
Name Type Description
playhead shaka.media.Playhead The Playhead. The caller retains ownership.
mediaSourceEngine shaka.media.MediaSourceEngine The MediaSourceEngine. The caller retains ownership.
netEngine shaka.net.NetworkingEngine The NetworkingEngine instance to use. The caller retains ownership.
onChooseStreams function(!shakaExtern.Period): shaka.media.StreamingEngine.ChosenStreams Called by StreamingEngine when the given Period needs to be buffered. StreamingEngine will switch to the variant and text stream returned from this function. The owner cannot call switch() directly until the StreamingEngine calls onCanSwitch().
onCanSwitch function() Called by StreamingEngine when the Period is set up and switching is permitted.
onError function(!shaka.util.Error) Called when an error occurs. If the error is recoverable (see
onEvent function(!Event) Called when an event occurs that should be sent to the app.
onManifestUpdate function() Called when an embedded 'emsg' box should trigger a manifest update.
onSegmentAppended function() Called after a segment is successfully appended to a MediaSource.
onInitialStreamsSetup function() | undefined Optional callback which is called when the initial set of Streams have been setup. Intended to be used by tests.
onStartupComplete function() | undefined Optional callback which is called when startup has completed. Intended to be used by tests.
Source: