fix destroy case

This commit is contained in:
vdalex
2022-12-12 18:50:38 +03:00
parent cb96c6046d
commit ac3bb4a3ae
2 changed files with 7 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -494,6 +494,12 @@ export default class RTSPtoWEBPlayer {
this.webRtcSocket.onclose = null;
this.webRtcSocket.close(1000);
this.turn = [];
if (this.webrtc != null) {
this.webrtc.close();
this.webrtc = null;
this.video.srcObject = null;
this.mediaStream = null;
}
break;
default:
}