|
@@ -28,6 +28,7 @@ import {
|
28
|
28
|
participantPresenceChanged,
|
29
|
29
|
showParticipantJoinedNotification
|
30
|
30
|
} from '../../react/features/base/participants';
|
|
31
|
+import { destroyLocalTracks } from '../../react/features/base/tracks';
|
31
|
32
|
import { openDisplayNamePrompt } from '../../react/features/display-name';
|
32
|
33
|
import {
|
33
|
34
|
setNotificationsEnabled,
|
|
@@ -376,15 +377,6 @@ UI.start = function() {
|
376
|
377
|
document.title = interfaceConfig.APP_NAME;
|
377
|
378
|
};
|
378
|
379
|
|
379
|
|
-/**
|
380
|
|
- * Invokes cleanup of any deferred execution within relevant UI modules.
|
381
|
|
- *
|
382
|
|
- * @returns {void}
|
383
|
|
- */
|
384
|
|
-UI.stopDaemons = () => {
|
385
|
|
- VideoLayout.resetLargeVideo();
|
386
|
|
-};
|
387
|
|
-
|
388
|
380
|
/**
|
389
|
381
|
* Setup some UI event listeners.
|
390
|
382
|
*/
|
|
@@ -1291,6 +1283,18 @@ UI.setLocalRemoteControlActiveChanged = function() {
|
1291
|
1283
|
VideoLayout.setLocalRemoteControlActiveChanged();
|
1292
|
1284
|
};
|
1293
|
1285
|
|
|
1286
|
+/**
|
|
1287
|
+ * Remove media tracks and UI elements so the user no longer sees media in the
|
|
1288
|
+ * UI. The intent is to provide a feeling that the meeting has ended.
|
|
1289
|
+ *
|
|
1290
|
+ * @returns {void}
|
|
1291
|
+ */
|
|
1292
|
+UI.removeLocalMedia = function() {
|
|
1293
|
+ APP.store.dispatch(destroyLocalTracks());
|
|
1294
|
+ VideoLayout.resetLargeVideo();
|
|
1295
|
+ $('#videospace').hide();
|
|
1296
|
+};
|
|
1297
|
+
|
1294
|
1298
|
// TODO: Export every function separately. For now there is no point of doing
|
1295
|
1299
|
// this because we are importing everything.
|
1296
|
1300
|
export default UI;
|