mirror of
https://github.com/vdalex25/rtsp-to-web-player.git
synced 2025-09-26 21:01:42 +08:00
fix destroy case
This commit is contained in:
2
dist/RTSPtoWEBPlayer.js
vendored
2
dist/RTSPtoWEBPlayer.js
vendored
File diff suppressed because one or more lines are too long
@@ -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:
|
||||
}
|
||||
|
Reference in New Issue
Block a user