Update closeVideo handler
This commit is contained in:
parent
c8d4739c0a
commit
d9e9a88c2a
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user