Skip to main content

Function: registerVideoProviderFactory()

registerVideoProviderFactory(providerId, factory): void

Defined in: packages/agentos/src/io/media/video/index.ts:60

Register a video provider factory for a given provider ID.

Use this to add third-party or custom video providers at runtime. Built-in providers (runway, replicate, fal, gemini) are pre-registered. The id also keys providerOptions: a bag holding an entry under it is read as keyed by provider, so the fallback providers never receive that entry as flat model inputs.

Parameters​

providerId​

string

Unique identifier for the provider (lowercased for matching).

factory​

VideoProviderFactory

Factory function that creates a new uninitialised provider instance.

Returns​

void