import React, { useEffect, useRef } from 'react'; /** * The type of the React {@code Component} props of {@link SecondScreenVideo}. */ interface IProps { /** * How the video fills its box: {@code contain} (default; never crops, used for * the stage and shared screens) or {@code cover} (camera tiles). */ fit?: 'contain' | 'cover'; /** * The native meeting track to render in the second window. */ track: MediaStreamTrack; /** * The second-screen window the video is portaled into. Its own * {@code MediaStream} constructor is used so the (child-realm) {@code