Interface ITranscodeProvider

interface ITranscodeProvider {
    destroy(): Promise<void>;
    init(): Promise<void>;
    supportsInput(mediaMetadata: TranscodeMediaDetails): Promise<boolean>;
    supportsInputURL(): Promise<boolean>;
    supportsOutput(outputType: TranscodeSupportType): Promise<boolean>;
    transcode(
        source: Uint8Array | URL,
        mediaMetadata: TranscodeMediaDetails,
        outputType: TranscodeSupportType,
        control: TranscodeControl,
        progressCallback?: (progressInfo: TranscodeProgressInfo) => void,
    ): Promise<null | TranscodeResult>;
}

Methods

  • Returns Promise<void>

  • Returns Promise<void>

  • Returns Promise<boolean>