- 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, 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:
(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:
(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:
(private, static) fromInheritance_(framenullable) → {Element}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
frame |
shaka.dash.DashParser.InheritanceFrame |
<nullable> |
- Source:
Returns:
- Type
- Element