Module: OfflineController

Provides access to offline stream recording and playback functionality.

Source:

Methods


<static> loadRecordsFromStorage()

Loads records from storage This methods has to be called first, to be sure that all downloads have been loaded

Source:
Returns:

asynchronously resolved

Type
Promise

createRecord(manifestURL)

Create a new content record in storage and download manifest from url

Parameters:
Name Type Description
manifestURL string

the content manifest url

Source:
Returns:

asynchronously resolved with record identifier

Type
Promise

deleteRecord(id)

Deletes a record from storage

Parameters:
Name Type Description
id string

record identifier

Source:

getAllRecords()

Get all records from storage

Source:
Returns:

asynchronously resolved with records

Type
Promise

getRecordProgression(id)

Get download progression of a record

Parameters:
Name Type Description
id string

record identifier

Source:
Returns:

percentage progression

Type
number

resetRecords()

Reset all records

Source:

resumeRecord(id)

Resume downloading of the record

Parameters:
Name Type Description
id string

record identifier

Source:

startRecord(id, mediaInfos)

Start downloading the record with selected tracks representations

Parameters:
Name Type Description
id string

record identifier

mediaInfos Array.<MediaInfo>

the selected tracks representations

Source:

stopRecord(id)

Stop downloading of the record

Parameters:
Name Type Description
id string

record identifier

Source: