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 context
shaka.dash.DashParser.Context callback
function(?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 context
shaka.dash.DashParser.Context requestInitSegment
shaka.dash.DashParser.RequestInitSegmentCallback init
shaka.media.InitSegmentReference presentationTimeOffset
number - 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 context
shaka.dash.DashParser.Context requestInitSegment
shaka.dash.DashParser.RequestInitSegmentCallback init
shaka.media.InitSegmentReference uris
Array.<string> startByte
number endByte
number <nullable>
containerType
string presentationTimeOffset
number - Source:
Returns:
-
(static) createStream(context, requestInitSegment, segmentIndexMapnon-null) → {shaka.dash.DashParser.StreamInfo}
-
Creates a new Stream object.
Parameters:
Name Type Description context
shaka.dash.DashParser.Context requestInitSegment
shaka.dash.DashParser.RequestInitSegmentCallback segmentIndexMap
Object.<string, !shaka.media.SegmentIndex> - Source:
Throws:
shaka.util.Error When there is a parsing error.Returns:
-
(private, static) fromInheritance_(framenullable) → {Element}
-
Parameters:
Name Type Attributes Description frame
shaka.dash.DashParser.InheritanceFrame <nullable>
- Source:
Returns:
- Type
- Element