Class Library

Constructors

Properties

media: Record<string, MediaData>
subtitles: Record<string, Subtitles>

Methods

  • Parameters

    • source: string | Uint8Array | File
    • OptionalmimeType: string

    Returns Promise<null | string>

  • Parameters

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

    Returns Promise<boolean>

  • Returns {
        media: {
            customData?: [string, unknown][];
            filename: string;
            hash?: string;
            id: string;
            mimeType?: string;
            permanentUrl?: string;
            type: string;
        }[];
        subtitles: {
            duration: number;
            id: string;
            language: string;
            textBlocks: { duration: number; text: string; time: number }[];
        }[];
    }