Interface MediaManager

Hierarchy

  • MediaManager

Methods

  • Add an convertor to consider for use when converting MediaObjects.

    Parameters

    Returns Promise<void>

  • Returns Promise<void>

  • Convert a media object to a Buffer, primtive type, or RPC Object.

    Type Parameters

    • T

    Parameters

    Returns Promise<T>

  • Convert a media object to a Buffer of the given mime type, and them parse it as JSON.

    Type Parameters

    • T

    Parameters

    Returns Promise<T>

  • Convert a media object to a Buffer of the given mime type.

    Parameters

    Returns Promise<Buffer>

  • Convert a media object to a locally accessible URL that serves a media file of the given mime type. If the media object is an externally accessible URL, that will be returned.

    Parameters

    Returns Promise<string>

  • Convert a media object to a locally accessible URL that serves a media file of the given mime type. If the media object is an externally accessible URL, that will be returned.

    Parameters

    Returns Promise<string>

  • Convert a media object to a publically accessible URL that serves a media file of the given mime type.

    Parameters

    Returns Promise<string>

  • Create a MediaObject from an URL. The mime type will be determined dynamically while resolving the url.

    Type Parameters

    Parameters

    • data: string
    • Optional options: T

    Returns Promise<MediaObject>

  • Create a MediaObject. If the data is a buffer, JSON object, or primitive type, it will be serialized. All other objects will be objects will become RPC objects.

    Type Parameters

    Parameters

    • data: any
    • mimeType: string
    • Optional options: T

    Returns Promise<MediaObject & T>

  • Get the path to ffmpeg on the host system.

    Returns Promise<string>

  • Get the directory where the plugin should store files.

    Returns Promise<string>

Generated using TypeDoc