Interface WaitTranscodeOptions

interface WaitTranscodeOptions {
    ignorePlaybackWhileTranscoding?: boolean;
    onError?: (error: Error) => void | Promise<void>;
    onProgress?: (state: StatusResponse) => void;
    pollIntervalSeconds?: number;
    signal?: AbortSignal;
    timeoutMinutes?: number;
}

Properties

ignorePlaybackWhileTranscoding?: boolean

If true set the status of video as "Processing" until transcode completes, instead of the default behavior of indicating "Ready" as soon as a playable version is available. See https://revdocs.vbrick.com/docs/allow-playback-during-transcoding

{true} - set status to "Processing" until all processing jobs are complete.
onError?: (error: Error) => void | Promise<void>

callback on error getting video status

throw error immediately
onProgress?: (state: StatusResponse) => void

callback to report current transcode progress

pollIntervalSeconds?: number

How often to check video status

30
signal?: AbortSignal

Signal to stop poll loop early

timeoutMinutes?: number

How long to wait for transcode to complete before stopping poll loop

240 (4 hours)