Documentation Index
Fetch the complete documentation index at: https://na-36-docs-v2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Controls serves as the interactive layer for broadcast control actions, dynamically displayed based on the broadcast state, loading state, or presence of an error. It is designed to automatically show upon user interaction with the Container element and hides based on the Root component’s autohide property.By default, controls are shown during hover or interaction.Features
- Automatic conditional rendering based on user interactions
- Compatible with CSS animations for dynamic enter/exit animations
Anatomy
Import the components and piece the parts together.Props
forceMount
Ensures the component is always in the DOM, useful for animation controls.
autoHide
Defines the auto-hide delay in milliseconds after user interaction. Default is
3000ms. Set to 0 to disable auto-hide.
Data Attributes
data-livepeer-controls
Serves to identify the component’s role within the broadcast interface.
data-visible
Reflects the visibility status of the controls. It’s "true" when the controls
are currently visible (not hidden, not loading, no error present, and WebRTC is
supported), and "false" when they’re not visible.
This is often used for dynamically applying enter/exit CSS animations.