Constructor
new InitSegmentReference(uris, startByte, endBytenullable, mediaQuality, timescaleopt, segmentDataopt, aesKeyopt, nullable, encryptedopt)
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| uris | function | A function that creates the URIs of the resource containing the segment. | ||
| startByte | number | The offset from the start of the resource to the start of the segment. | ||
| endByte | number | <nullable> | The offset from the start of the resource to the end of the segment, inclusive. A value of null indicates that the segment extends to the end of the resource. | |
| mediaQuality | null | shaka.extern.MediaQualityInfo | null | Information about the quality of the media associated with this init segment. | |
| timescale | null | number | <optional> | null | |
| segmentData | null | BufferSource | <optional> | null | |
| aesKey | shaka.extern.aesKey | <optional> <nullable> | null | The segment's AES-128-CBC full segment encryption key and iv. | 
| encrypted | boolean | <optional> | false | 
- Source:
Members
getUris :function(): !Array<string>
Type:
- function(): !Array<string>
- Source:
segmentData :BufferSource|null
Type:
- BufferSource | null
- Source:
Methods
equal(reference1nullable, reference2nullable) → {boolean}
    Check if two initSegmentReference have all the same values.
    Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| reference1 | shaka.media.InitSegmentReference | <nullable> | |
| reference2 | shaka.media.InitSegmentReference | <nullable> | 
- Source:
Returns:
- Type
- boolean
getEndByte() → {number}
    Returns the offset from the start of the resource to the end of the
segment, inclusive.  A value of null indicates that the segment extends
to the end of the resource.
- Source:
Returns:
- Type
- number
getMediaQuality() → {shaka.extern.MediaQualityInfo}
    Returns media quality information for the segments associated with
this init segment.
- Source:
Returns:
getSegmentData() → {BufferSource}
    Return the segment data.
- Source:
Returns:
- Type
- BufferSource
getSize() → {number}
    Returns the size of the init segment.
- Source:
Returns:
- Type
- number
getStartByte() → {number}
    Returns the offset from the start of the resource to the
start of the segment.
- Source:
Returns:
- Type
- number
setSegmentData(segmentDatanon-null)
    Set the segment data.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| segmentData | BufferSource | 
- Source: