Class: shaka.dash.SegmentBase

A set of functions for parsing SegmentBase elements.

Methods

(static) createInitSegment(context, callback) → {shaka.media.InitSegmentReference}

Creates an init segment reference from a Context object.
Parameters:
Name Type Description
context shaka.dash.DashParser.Context
callback function(?shaka.dash.DashParser.InheritanceFrame):Element
Source:
Returns:
Type
shaka.media.InitSegmentReference

(private, static) createSegmentIndex_(context, requestInitSegment, init, scaledPresentationTimeOffset) → {shaka.dash.DashParser.SegmentIndexFunctions}

Creates segment index info from a Context object.
Parameters:
Name Type Description
context shaka.dash.DashParser.Context
requestInitSegment shaka.dash.DashParser.RequestInitSegmentCallback
init shaka.media.InitSegmentReference
scaledPresentationTimeOffset number
Source:
Throws:
shaka.util.Error When there is a parsing error.
Returns:
Type
shaka.dash.DashParser.SegmentIndexFunctions

(static) createSegmentIndexFromUris(context, requestInitSegment, init, urisnon-null, startByte, endBytenullable, containerType, scaledPresentationTimeOffset) → {shaka.dash.DashParser.SegmentIndexFunctions}

Creates segment index info for the given info.
Parameters:
Name Type Attributes Description
context shaka.dash.DashParser.Context
requestInitSegment shaka.dash.DashParser.RequestInitSegmentCallback
init shaka.media.InitSegmentReference
uris Array.<string>
startByte number
endByte number <nullable>
containerType string
scaledPresentationTimeOffset number
Source:
Returns:
Type
shaka.dash.DashParser.SegmentIndexFunctions

(static) createStream(context, requestInitSegment) → {shaka.dash.DashParser.StreamInfo}

Creates a new Stream object.
Parameters:
Name Type Description
context shaka.dash.DashParser.Context
requestInitSegment shaka.dash.DashParser.RequestInitSegmentCallback
Source:
Throws:
shaka.util.Error When there is a parsing error.
Returns:
Type
shaka.dash.DashParser.StreamInfo

(private, static) fromInheritance_(framenullable) → {Element}

Parameters:
Name Type Attributes Description
frame shaka.dash.DashParser.InheritanceFrame <nullable>
Source:
Returns:
Type
Element