Переглянути джерело

fix(proxy): stop screenshare when the connection stops

master
Leonard Kim 6 роки тому
джерело
коміт
6d91728a74
1 змінених файлів з 12 додано та 0 видалено
  1. 12
    0
      conference.js

+ 12
- 0
conference.js Переглянути файл

2727
                  */
2727
                  */
2728
                 convertVideoToDesktop: true,
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
                  * Callback invoked to pass messages from the local client back
2743
                  * Callback invoked to pass messages from the local client back
2732
                  * out to the external client.
2744
                  * out to the external client.

Завантаження…
Відмінити
Зберегти