Provides the means to download and store sources locally that can be played back with a Player without an active network connection. An OfflineContentManager instance can be created via the constructor and will be idle until initialized.

Platform

Android, iOS

Hierarchy

Constructors

Properties

The configuration object used to initialize this instance.

isDestroyed: boolean = false
isInitialized: boolean = false
nativeId: string

Optionally user-defined string id for the native instance, or UUIDv4.

Methods

  • Adds a listener to the receive data from the native OfflineContentManagerListener callbacks Returns a function that removes this listener from the OfflineContentManager that registered it.

    Parameters

    Returns (() => void)

      • (): void
      • Returns void

  • Destroys the native OfflineManager and releases all of its allocated resources.

    Returns Promise<void>

  • Enqueues downloads according to the OfflineDownloadRequest. The promise will reject in the event of null or invalid request parameters. The promise will reject when calling this method when download has already started or is completed. The promise will resolve when the download has been queued. The download will is not finished when the promise resolves.

    Parameters

    Returns Promise<void>

  • Downloads the offline license. When finished successfully, data will be passed to the OfflineContentManagerListener.onDrmLicenseUpdated. Errors are transmitted to the OfflineContentManagerListener.onError.

    Returns Promise<void>

  • Loads the current OfflineContentOptions. When the options are loaded the data will be passed to the OfflineContentManagerListener.onOptionsAvailable.

    Returns Promise<void>

  • Allocates the native OfflineManager instance and its resources natively. Registers the DeviceEventEmitter listener to receive data from the native OfflineContentManagerListener callbacks

    Returns Promise<void>

  • Releases the currently held offline license. When finished successfully data will be passed to the OfflineContentManagerListener.onDrmLicenseUpdated. Errors are transmitted to the OfflineContentManagerListener.onError.

    Returns Promise<void>

    Platform

    Android

  • Renews the already downloaded DRM license. When finished successfully data will be passed to the OfflineContentManagerListener.onDrmLicenseUpdated. Errors are transmitted to the OfflineContentManagerListener.onError.

    Returns Promise<void>