A set of functions for parsing SegmentBase elements.
- Source:
Methods
-
(static) createInitSegment(context, callback) → {shaka.media.InitSegmentReference}
-
Creates an init segment reference from a Context object.
Parameters:
Name Type Description contextshaka.dash.DashParser.Context callbackfunction(?shaka.dash.DashParser.InheritanceFrame): Element - Source:
Returns:
-
(private, static) createSegmentIndex_(context, requestInitSegment, init, presentationTimeOffset) → {shaka.dash.DashParser.SegmentIndexFunctions}
-
Creates segment index info from a Context object.
Parameters:
Name Type Description contextshaka.dash.DashParser.Context requestInitSegmentshaka.dash.DashParser.RequestInitSegmentCallback initshaka.media.InitSegmentReference presentationTimeOffsetnumber - Source:
Throws:
shaka.util.Error When there is a parsing error.Returns:
-
(static) createSegmentIndexFromUris(context, requestInitSegment, init, urisnon-null, startByte, endBytenullable, containerType, presentationTimeOffset) → {shaka.dash.DashParser.SegmentIndexFunctions}
-
Creates segment index info for the given info.
Parameters:
Name Type Attributes Description contextshaka.dash.DashParser.Context requestInitSegmentshaka.dash.DashParser.RequestInitSegmentCallback initshaka.media.InitSegmentReference urisArray.<string> startBytenumber endBytenumber <nullable>
containerTypestring presentationTimeOffsetnumber - Source:
Returns:
-
(static) createStream(context, requestInitSegment) → {shaka.dash.DashParser.StreamInfo}
-
Creates a new Stream object.
Parameters:
Name Type Description contextshaka.dash.DashParser.Context requestInitSegmentshaka.dash.DashParser.RequestInitSegmentCallback - Source:
Throws:
shaka.util.Error When there is a parsing error.Returns:
-
(private, static) fromInheritance_(framenullable) → {Element}
-
Parameters:
Name Type Attributes Description frameshaka.dash.DashParser.InheritanceFrame <nullable>
- Source:
Returns:
- Type
- Element