mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: speechEvent.stop fix 2
parent
49360d9771
commit
fa08ee87f0
|
@ -457,8 +457,10 @@ export class Stream implements EventDispatcher {
|
|||
typeof MediaStreamTrack !== 'undefined' && this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack;
|
||||
this.webRtcPeer.dispose(isSenderAndCustomTrack);
|
||||
}
|
||||
if (!!this.speechEvent && !!this.speechEvent.stop) {
|
||||
this.speechEvent.stop();
|
||||
if (!!this.speechEvent) {
|
||||
if (!!this.speechEvent.stop) {
|
||||
this.speechEvent.stop();
|
||||
}
|
||||
delete this.speechEvent;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue