Closing webcam without reloading
问题 I'm a a beginner in web development and I’m working on a video chat app built with create-react-app . I’m using recordRTC library for record and stream from users’s webcam and microphone. When I stop recording, I also would like to close the webcam. import React, { Component } from "react"; import RecordRTC from "recordrtc"; const captureUserMedia = callback => { const params = { audio: true, video: true }; navigator.mediaDevices .getUserMedia(params) .then(callback) .catch((error) => {