Represents a caching task.

interface CachingTask {
    bytes: number;
    bytesCached: number;
    cached: TimeRange[];
    duration: number;
    id: string;
    license: CachingTaskLicense;
    parameters: CachingTaskParameters;
    percentageCached: number;
    secondsCached: number;
    source: SourceDescription;
    status: CacheTaskStatus;
    addEventListener<TType>(type, listener): void;
    pause(): void;
    remove(): void;
    removeEventListener<TType>(type, listener): void;
    start(): void;
}

Hierarchy (view full)

Properties

bytes: number

The estimation of the amount this task will download and store, in bytes.

Remarks


- Available only on Web and Android.
- Returns -1 if the estimate is not available yet.

bytesCached: number

The amount downloaded and stored, in bytes.

cached: TimeRange[]

The time ranges cached, in milliseconds.

duration: number

The requested cached duration of the media, in seconds.

id: string

The generated identifier for the task.

The API for license related queries and operations

The configuration of the task.

percentageCached: number

The percentage cached, a value between 0 and 1.

secondsCached: number

The duration cached, in seconds.

The media source associated with the task.

The current status of the task.

Methods

Generated using TypeDoc