Dynamically constructing a workflow
- How to add, update and connect components in a workflow session
Key Concepts
-
Adding components to a session: Components are the building blocks of your workflow. Each component represents a specific function like input sources, mixers, or output destinations. Components are added via POST requests to the session's components endpoint and must have unique
componentIdvalues for identification and control. -
Creating Links between components: Links establish the data flow between components by connecting output pads to input pads. Each pad has a unique name that's referenced when creating the link. Links are unidirectional and define how audio/video data flows through your workflow pipeline.
-
Updating Properties on a component: After components are added to a session, their properties can be dynamically modified using PATCH requests. This allows real-time control over component behavior, such as enabling/disabling outputs, adjusting audio/video settings, or starting/stopping recordings without rebuilding the workflow.