Constructor
new OfflineUri(type, mechanism, cell, key, pendingSegmentopt, nullable)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
type |
string | |||
mechanism |
string | |||
cell |
string | |||
key |
number | |||
pendingSegment |
shaka.offline.OfflineUri.PendingSegment |
<optional> <nullable> |
null | Required for "pending" uris. |
- Source:
Members
Methods
manifest(mechanism, cell, key) → {shaka.offline.OfflineUri}
Parameters:
| Name | Type | Description |
|---|---|---|
mechanism |
string | |
cell |
string | |
key |
number |
- Source:
Returns:
parse(uri) → {shaka.offline.OfflineUri}
Parameters:
| Name | Type | Description |
|---|---|---|
uri |
string |
- Source:
Returns:
pendingSegment(mechanism, cell, manifestKey, pendingSegment) → {shaka.offline.OfflineUri}
Parameters:
| Name | Type | Description |
|---|---|---|
mechanism |
string | |
cell |
string | |
manifestKey |
number | |
pendingSegment |
shaka.offline.OfflineUri.PendingSegment |
- Source:
Returns:
segment(mechanism, cell, key) → {shaka.offline.OfflineUri}
Parameters:
| Name | Type | Description |
|---|---|---|
mechanism |
string | |
cell |
string | |
key |
number |
- Source:
Returns:
manifestOfPendingSegment() → {shaka.offline.OfflineUri}
- Source:
Returns:
The uri of the manifest a pending
segment belongs to.
toString()
- Source:
Type Definitions
PendingSegment
Locates a segment of stored content that has not been stored yet.
Type:
- {streamId: number, position: number, isInit: boolean}
Properties:
| Name | Type | Description |
|---|---|---|
streamId |
number | The id of the stream the segment belongs to. |
position |
number | The position of the segment in the segments of the stream. |
isInit |
boolean | If true, this refers to the init segment of that segment instead. |
- Source: