Update closeVideo handler

This commit is contained in:
Sergiu Toma 2022-06-16 09:51:26 +03:00
parent c8d4739c0a
commit d9e9a88c2a

View File

@ -4,7 +4,7 @@ import './App.css';
const io = require('socket.io-client');
var stream, pc;
let stream, pc;
let localStream;
// let remoteStream;
@ -331,9 +331,10 @@ class App extends Component {
};
cleanVideoStreams = () => {
console.log('------ cleanVideoStreams ------');
this.setState({ dest_asset_id: '', callId: null });
pc.close();
// localVideo.srcObject = null;
localVideo.srcObject = null;
// remoteVideo.srcObject = null;
};