Mapping events to progress
Each WebRTC lifecycle event represents a stage in the connection process. Map them to progress values:Example implementation
Failure states
Show error messages when the connection fails:Queue position during loading
When the user is in a queue, show their position:Reconnection states
Update the loading screen during reconnection:LOADING_CONFIG pattern (from example app)
The example app uses a configuration object to centralize all loading screen customization:Next steps
Mounting the stream
Append the SDK video to your DOM and hide default UI.
Example app walkthrough
See the complete reference implementation in React.