Browse Source

fix(proxy): stop screenshare when the connection stops

master
Leonard Kim 6 years ago
parent
commit
6d91728a74
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      conference.js

+ 12
- 0
conference.js View File

@@ -2727,6 +2727,18 @@ export default {
2727 2727
                  */
2728 2728
                 convertVideoToDesktop: true,
2729 2729
 
2730
+                /**
2731
+                 * Callback invoked when the connection has been closed
2732
+                 * automatically. Triggers cleanup of screensharing if active.
2733
+                 *
2734
+                 * @returns {void}
2735
+                 */
2736
+                onConnectionClosed: () => {
2737
+                    if (this._untoggleScreenSharing) {
2738
+                        this._untoggleScreenSharing();
2739
+                    }
2740
+                },
2741
+
2730 2742
                 /**
2731 2743
                  * Callback invoked to pass messages from the local client back
2732 2744
                  * out to the external client.

Loading…
Cancel
Save