You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Merge pull request #1633 from matrix-org/dbkr/stop_streams_if_call_ended
Stop streams if the call has ended
This commit is contained in:
@@ -825,8 +825,11 @@ export class MatrixCall extends EventEmitter {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.callHasEnded()) {
|
if (this.callHasEnded()) {
|
||||||
|
this.stopAllMedia();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.localAVStream = stream;
|
||||||
|
logger.info("Got local AV stream with id " + this.localAVStream.id);
|
||||||
|
|
||||||
this.setState(CallState.CreateOffer);
|
this.setState(CallState.CreateOffer);
|
||||||
|
|
||||||
@@ -852,8 +855,6 @@ export class MatrixCall extends EventEmitter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.localAVStream = stream;
|
|
||||||
logger.info("Got local AV stream with id " + this.localAVStream.id);
|
|
||||||
// why do we enable audio (and only audio) tracks here? -- matthew
|
// why do we enable audio (and only audio) tracks here? -- matthew
|
||||||
setTracksEnabled(stream.getAudioTracks(), true);
|
setTracksEnabled(stream.getAudioTracks(), true);
|
||||||
this.peerConn = this.createPeerConnection();
|
this.peerConn = this.createPeerConnection();
|
||||||
|
|||||||
Reference in New Issue
Block a user