Version: 2.67.0

Cache

THEOplayer > Cache

Cache interface

Inherits from EventDispatcher<CacheEventMap> . See parent page for inherited properties and methods.

The media caching API.

Signature:
export interface Cache extends EventDispatcher<CacheEventMap>

Properties

Property

Type

Description

network

NetworkInterceptorController

The cache's network API which allows intercepting requests and responses made by the cache.

status

CacheStatus

The current status of the cache.

tasks

CachingTaskList

List of caching tasks which control the caching of media.

Methods

Method

Description

createTask(source, parameters)

Create a caching task which controls the caching of media.

Remarks


- Available since v2.26.