Class: shaka.offline.DownloadInfo

Constructor

new DownloadInfo(ref, estimateId, groupId, isInitSegment, refPosition, refIdopt, nullable)

Parameters:
Name Type Attributes Default Description
ref shaka.media.SegmentReference | shaka.media.InitSegmentReference
estimateId number
groupId number
isInitSegment boolean
refPosition number
refId string <optional>
<nullable>
null The ID the stored content knows this segment by, if it is not the ID of |ref|. This is the case when resuming a download from a new copy of the manifest, whose URIs may have changed.
Source:

Members

estimateId :number

Type:
  • number
Source:

groupId :number

Type:
  • number
Source:

isInitSegment :boolean

Type:
  • boolean
Source:

refId_ :string

Type:
  • string
Source:

refPosition :number

Type:
  • number
Source:

Methods

idForSegmentRef(ref) → {string}

Creates an ID that encapsulates all important information in the ref, which can then be used to check for equality.
Parameters:
Name Type Description
ref shaka.media.SegmentReference | shaka.media.InitSegmentReference
Source:
Returns:
Type
string

getRefId() → {string}

Source:
Returns:
Type
string

makeSegmentRequest(config) → {shaka.extern.Request}

Parameters:
Name Type Description
config shaka.extern.PlayerConfiguration
Source:
Returns:
Type
shaka.extern.Request