Lines Matching refs:video
28 function useLoadedVideo(video: HTMLVideoElement | null, onLoaded: () => void) {
30 if (video) {
31 video.addEventListener('loadedmetadata', () => {
40 }, [video]);
44 video: React.MutableRefObject<HTMLVideoElement | null>,
173 if (!video.current) {
176 Utils.setVideoSource(video.current, stream);
177 }, [video.current, stream]);
186 if (video.current) {
188 Utils.setVideoSource(video.current, stream);
194 useLoadedVideo(video.current, () => {