Hierarchy

  • MediaManager

Constructors

Properties

bucket: Bucket
getVariantSettingsFn: GetVariantSettingsFn
prefix: string

Methods

  • Returns

    a ReadableStream of file content from GCS.

    Parameters

    • id: string

      id in MediaEntry

    • variant: undefined | string = DEFAULT_ORIGINAL_VARIANT_NAME

      Maps to name. Defaults to original.

    Returns ReadableStream

  • Returns the GCS File for the specified id and variant.

    Note that this API does not check if the file actually exist on GCS; you may use the exists method provided by GCS File to check by yourself.

    Parameters

    • id: string

      id in MediaEntry

    • variant: undefined | string = DEFAULT_ORIGINAL_VARIANT_NAME

      Maps to name. Defaults to original.

    Returns File

Generated using TypeDoc