Interface VideoFallbackEvent

Payload emitted on the video:generate:fallback event when a provider in the chain fails and the proxy advances to the next candidate.

Example

emitter.on('video:generate:fallback', (evt: VideoFallbackEvent) => {
console.warn(`${evt.from} -> ${evt.to}: ${evt.reason}`);
});
interface VideoFallbackEvent {
    type: "video:generate:fallback";
    from: string;
    to: string;
    reason: string;
}

Properties

Properties

type: "video:generate:fallback"

The event discriminator. Always 'video:generate:fallback'.

from: string

Identifier of the provider that failed.

to: string

Identifier of the provider that will be tried next.

reason: string

Human-readable reason for the fallback (error message or "not supported").