Lines Matching refs:stream
42 const [stream, setStream] = React.useState(null);
44 return stream ? stream.getTracks()[0].getSettings() : null;
45 }, [stream]);
71 if (Utils.compareStreams(nextStream, stream)) {
88 }, [getStreamDeviceAsync, setStream, onCameraReady, stream, activeStreams.current]);
120 Utils.syncTrackCapabilities(preferredType, stream, changes);
142 Utils.setVideoSource(video.current, stream);
143 }, [video.current, stream]);
147 for (const stream of activeStreams.current) {
149 Utils.stopMediaStream(stream);
153 Utils.setVideoSource(video.current, stream);
159 Utils.syncTrackCapabilities(preferredType, stream, capabilities.current);