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

    • data: any

    Returns Promise<string>

  • Parameters

    • id: string

    Returns Promise<void>

  • Returns Promise<void>

  • Parameters

    • id: string

    Returns undefined | MediaData

  • Parameters

    • id: string

    Returns undefined | Subtitles

  • Returns string[]

  • Returns Promise<void>

  • Parameters

    • id: string

    Returns void

  • Parameters

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

    Returns Promise<boolean>

  • Parameters

    • data: any

    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 }[];
        }[];
    }

  • Returns Promise<void>

  • Parameters

    • data: object

    Returns Library