Function createVideoProvider

  • Create a video provider instance by provider ID.

    Looks up the factory in the registry and returns a new uninitialised provider. The caller must call provider.initialize(config) before use.

    Parameters

    • providerId: string

      Provider identifier (e.g. "runway", "replicate", "fal").

    Returns IVideoGenerator

    A new uninitialised IVideoGenerator instance.

    Throws

    When no factory is registered for the given provider ID.