Provides simplified access to persistent storage for blobs within the Replayer app. This allows to keep the media files, available over web app restarts.

Devdoc

Implements a module as described in https://www.typescriptlang.org/docs/handbook/modules.html

Devdoc

This currently uses localforage for storage and retrieval, but for compatibility with the formerly used idb-keyval, the database name and the store name are configured to match those of idb-keyval

Constructors

Methods

  • Removes all media blob data from the persistent store

    Returns Promise<void>

    Devdoc

    The indexed db is used for blob data, as recommended.

  • Removes the given media blob data from the persistent store

    Parameters

    • fileName: string

    Returns Promise<void>

    Devdoc

    The indexed db is used for blob data, as recommended.

  • Retrieves media blob data from the persistent store

    Returns Promise<MediaBlob[]>

    Remarks

    In case of an error, as many blobs as possilbe are returned, but the set might also be empty.

    Devdoc

    The indexed db is used for blob data, as recommended.

  • Persistently stores media blob data for later retrieval

    Parameters

    • data: {
          blob: Blob;
          fileName: string;
      }
      • blob: Blob
      • fileName: string

    Returns void

    Devdoc

    The indexed db is used for blob data, as recommended for large data.