Buttons
CreateCallButton
Button that constructs a new call via createCall and reports the result
through the supplied setCall callback.
import { CreateCallButton } from '@video/video-client-react';
Props
DisableCameraButton
Button that sets the media-stream controller's videoDisabled flag,
disabling the camera track. Renders nothing when the camera is already
disabled.
import { DisableCameraButton } from '@video/video-client-react';
Props
DisableMicButton
Button that sets the media-stream controller's audioDisabled flag,
disabling the microphone track.
import { DisableMicButton } from '@video/video-client-react';
Props
EnableCameraButton
Button that clears the media-stream controller's videoDisabled flag,
enabling the camera track.
import { EnableCameraButton } from '@video/video-client-react';
Props
EnableMicButton
Button that clears the media-stream controller's audioDisabled flag,
enabling the microphone track.
import { EnableMicButton } from '@video/video-client-react';
Props
EndBroadcastButton
Button that disposes the broadcast read from useBroadcastAPI and
invokes onDisposed once the broadcast's disposed event fires.
import { EndBroadcastButton } from '@video/video-client-react';
Props
EndCallButton
Button that disposes the call read from useCallAPI and invokes
onDisposed once the call's disposed event fires.
import { EndCallButton } from '@video/video-client-react';
Props
FullScreenButton
Button that toggles the player's fullscreen state. Subscribes to the
fullscreen event so the button re-renders when the state changes outside
of a direct click.
import { FullScreenButton } from '@video/video-client-react';
Props
JoinCallButton
Button that joins an existing call via joinCall and reports the result
through the supplied setCall callback. Throws if callId is missing when
the button is clicked.
import { JoinCallButton } from '@video/video-client-react';
Props
MuteAudioButton
Button that mutes the player's audio output.
import { MuteAudioButton } from '@video/video-client-react';
Props
PauseBroadcastButton
Button that pauses the broadcast by swapping the camera feed for the
active placeholder source. If the microphone was already disabled, it
stays disabled; otherwise it transitions to the "placeholder" state.
import { PauseBroadcastButton } from '@video/video-client-react';
Props
PausePlaybackButton
Button that pauses the player.
import { PausePlaybackButton } from '@video/video-client-react';
Props
ResumePlaybackButton
Button that resumes the player.
import { ResumePlaybackButton } from '@video/video-client-react';
Props
StartBroadcastButton
Button that starts a broadcast on the current call using the media-stream
controller read from useMediaStreamControllerAPI, and reports the
result through setBroadcast.
import { StartBroadcastButton } from '@video/video-client-react';
Props
ToggleCameraButton
Stateful wrapper that renders DisableCameraButton when the camera
is currently on and EnableCameraButton when it is off. Subscribes
to the media-stream controller's videoDisabled event so the displayed
button stays in sync.
import { ToggleCameraButton } from '@video/video-client-react';
Props
ToggleMicButton
Stateful wrapper that renders DisableMicButton when the microphone
is currently on and EnableMicButton when it is off. Subscribes to
the media-stream controller's audioDisabled event so the displayed button
stays in sync.
import { ToggleMicButton } from '@video/video-client-react';
Props
ToggleMuteButton
Stateful wrapper that renders UnmuteAudioButton when the player is
muted and MuteAudioButton when it is unmuted. Subscribes to the
player's muted and unmuted events so the displayed button stays in sync.
import { ToggleMuteButton } from '@video/video-client-react';
Props
TogglePlayButton
Stateful wrapper that renders ResumePlaybackButton when the player
is paused and PausePlaybackButton when it is playing. Subscribes
to the player's paused and playing events so the displayed button
stays in sync.
import { TogglePlayButton } from '@video/video-client-react';
Props
UnmuteAudioButton
Button that unmutes the player's audio output.
import { UnmuteAudioButton } from '@video/video-client-react';
Props
UnpauseBroadcastButton
Button that unpauses the broadcast by stopping the active placeholder and
clearing the media-stream controller's capturable field. Preserves the
microphone's disabled state across the transition.
import { UnpauseBroadcastButton } from '@video/video-client-react';