<DailyVideo sessionId={sessionId} />
Props
string
required
The participant’s
session_id for which the video track should be played.boolean
default:"false"
When enabled, mirrors a local participant’s user-facing camera video.
'contain' | 'cover'
default:"'contain'"
Determines whether the video should be fully contained or cover the element. See
object-fit for details.boolean
default:"false"
When set to
true, video is mirrored.Object
default:"{}"
Inline styles to be applied when the video is in a playable state. These will overwrite styles passed with the
style prop. Use this to style the <video> differently when it’s playing or not (e.g. when the participant’s camera is muted or not).Function
Callback when the video element is resized. Reports the video’s
height, width and aspectRatio.Object
default:"{}"
Inline styles to be applied to the
<video> element.'video' | 'screenVideo' | 'rmpVideo' | string
default:"'video'"
The participant’s track type to play. In addition to the built-in track types, you can pass the
trackName of a custom video track started via startCustomTrack().DailyVideo also accepts any other React.VideoHTMLAttributes.
Data attributes
DailyVideo renders a couple of dynamic data attributes:
Example
trackName as the type: