fix(proxy): stop screenshare when the connection stops

This commit is contained in:
Leonard Kim 2019-07-29 15:21:53 -07:00 committed by virtuacoplenny
parent 9b32fc95eb
commit 6d91728a74
1 changed files with 12 additions and 0 deletions

View File

@ -2727,6 +2727,18 @@ export default {
*/
convertVideoToDesktop: true,
/**
* Callback invoked when the connection has been closed
* automatically. Triggers cleanup of screensharing if active.
*
* @returns {void}
*/
onConnectionClosed: () => {
if (this._untoggleScreenSharing) {
this._untoggleScreenSharing();
}
},
/**
* Callback invoked to pass messages from the local client back
* out to the external client.