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

  • Parameters

    • filePath: string
    • blobUrl: string
    • hasAudio: boolean

    Returns Promise<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;
        },
    >

  • Parameters

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

    Returns Promise<void>

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

  • Parameters

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

    Returns boolean