@rendley/sdk - v1.15.5
    Preparing search index...

    Interface ITranscodeProvider

    Contract implemented by custom transcode providers used by the SDK.

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

    Methods

    • Releases all resources owned by the provider.

      Returns Promise<void>

      A promise that resolves after teardown completes.

    • Initializes the provider and allocates any runtime resources it needs.

      Returns Promise<void>

      A promise that resolves after initialization completes.

    • Indicates whether the provider can transcode the supplied source media.

      Parameters

      Returns Promise<boolean>

      A promise that resolves to true if the provider can accept the input.

    • Indicates whether the provider can transcode media using only a URL reference.

      Returns Promise<boolean>

      A promise that resolves to true if URL-only inputs are supported.

    • Indicates whether the provider can produce the requested output format.

      Parameters

      Returns Promise<boolean>

      A promise that resolves to true if the output is supported.