The VideoEnabledTrigger
and VideoEnabledIndicator
components provide gateways with interactive controls and visual cues to manage the video enabled state during a broadcast.
VideoEnabledTrigger
and VideoEnabledIndicator
integrate together to form
the typical video on/off interaction for broadcasts. They do not have to be
used together and can combine with other components.matcher
patterngetUserMedia
browser API used to get the video is only available in
secure contexts (HTTPS).VideoEnabledTrigger
VideoEnabledIndicator
forceMount
matcher
VideoEnabledIndicator
should be visible. It can be a boolean that corresponds
directly to the audio state or a function that provides custom logic for
visibility determination based on the audio state.
VideoEnabledTrigger
data-livepeer-controls-video-enabled-trigger
data-enabled
"true"
when video is enabled and "false"
when it is disabled.
VideoEnabledIndicator
data-livepeer-controls-video-enabled-indicator
data-enabled
"true"
when video is enabled and
"false"
when it is disabled.
data-visible
"true"
meaning it’s
currently visible based on the matcher
or video state and "false"
denoting
it’s not visible.
This is often used for dynamically applying enter/exit CSS animations.