Class: shaka.offline.OfflineUri

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

asString_ :string

Type:
  • string
Source:

cell_ :string

Type:
  • string
Source:

key_ :number

Type:
  • number
Source:

mechanism_ :string

Type:
  • string
Source:

type_ :string

Type:
  • string
Source:

Methods

manifest(mechanism, cell, key) → {shaka.offline.OfflineUri}

Parameters:
Name Type Description
mechanism string
cell string
key number
Source:
Returns:
Type
shaka.offline.OfflineUri

parse(uri) → {shaka.offline.OfflineUri}

Parameters:
Name Type Description
uri string
Source:
Returns:
Type
shaka.offline.OfflineUri

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:
Type
shaka.offline.OfflineUri

segment(mechanism, cell, key) → {shaka.offline.OfflineUri}

Parameters:
Name Type Description
mechanism string
cell string
key number
Source:
Returns:
Type
shaka.offline.OfflineUri

cell() → {string}

Source:
Returns:
Type
string

isManifest() → {boolean}

Source:
Returns:
Type
boolean

isPendingSegment() → {boolean}

Source:
Returns:
Type
boolean

isSegment() → {boolean}

Source:
Returns:
Type
boolean

key() → {number}

Source:
Returns:
Type
number

manifestOfPendingSegment() → {shaka.offline.OfflineUri}

Source:
Returns:
The uri of the manifest a pending segment belongs to.
Type
shaka.offline.OfflineUri

mechanism() → {string}

Source:
Returns:
Type
string

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: