Class MediaData

Constructors

Properties

audioSplit?: string
blobUrl?: string
customData?: Map<string, unknown>
data?: Uint8Array
duration?: number
filename?: string
filmstrip?: string
hash?: string
height?: number
metadata?: MediaInfo
mimeType?: string
permanentUrl?: string
size?: number
status?: MediaDataStatus
storePath?: string
thumbnail?: string
type?: string
width?: number

Methods

  • Returns void

  • Returns Promise<void>

  • Returns undefined | Map<string, unknown>

  • Parameters

    • key: string

    Returns unknown

  • Returns undefined | string

  • Returns string

  • Parameters

    • key: string

    Returns boolean

  • Parameters

    • file: string | Uint8Array | File
    • mimeType: undefined | string

    Returns Promise<
        | {
            data: Uint8Array;
            filePath: string;
            mimeType: string;
            status: boolean;
        }
        | {
            data?: undefined;
            filePath?: undefined;
            mimeType?: undefined;
            status: boolean;
        },
    >

  • Parameters

    • file: string | Uint8Array | File
    • mimeType: undefined | string

    Returns Promise<
        | {
            data: Uint8Array;
            filePath: string;
            mimeType: string;
            status: boolean;
        }
        | {
            data?: undefined;
            filePath?: undefined;
            mimeType?: undefined;
            status: boolean;
        },
    >

  • Parameters

    • file: string | Uint8Array | File
    • mimeType: undefined | string

    Returns Promise<
        | {
            data: Uint8Array;
            filePath: string;
            mimeType: string;
            status: boolean;
        }
        | {
            data?: undefined;
            filePath?: undefined;
            mimeType?: undefined;
            status: boolean;
        },
    >

  • Returns Promise<void>

  • Parameters

    • file: string | Uint8Array | File
    • OptionalmimeType: string

    Returns Promise<void>

  • Parameters

    • file: File
    • OptionalmimeType: string

    Returns Promise<Blob>

  • Parameters

    • key: string

    Returns boolean

  • Returns Promise<boolean>

  • Returns {
        customData?: [string, unknown][];
        filename: string;
        hash?: string;
        id: string;
        mimeType?: string;
        permanentUrl?: string;
        type: string;
    }

  • Parameters

    • data: Map<string, unknown>

    Returns void

  • Parameters

    • key: string
    • value: unknown
    • overwrite: boolean = true

    Returns boolean

  • Parameters

    • url: null | string

    Returns void

  • Returns Promise<void>

  • Parameters

    • status: MediaDataStatus
    • checkIntervalMS: number = 0
    • timeoutMS: number = 0

    Returns Promise<boolean>