Readonly bytesThe estimation of the amount this task will download and store, in bytes.
- Returns -1 if the estimate is not available yet.
Readonly bytesThe amount downloaded and stored, in bytes.
Readonly cachedThe time ranges cached, in milliseconds.
Readonly durationThe requested cached duration of the media, in seconds.
Readonly idThe generated identifier for the task.
Readonly licenseThe API for license related queries and operations
Readonly parametersThe configuration of the task.
Readonly percentageThe percentage cached, a value between 0 and 1.
Readonly secondsThe duration cached, in seconds.
Readonly sourceThe media source associated with the task.
Readonly statusThe current status of the task.
Add the given listener for the given event type(s).
The type of the event.
The callback which is executed when the event occurs.
Pause caching the media.
- A paused task can be resumed with CachingTask.start.
Remove the given listener for the given event type(s).
The type of the event.
The callback which will be removed.
Represents a caching task.