Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: Send SS stopped analytics event when SS was started in video mute state

Jaya Allamsettybd64c14aaa2e
diff --git a/conference.js b/conference.js
index 486f6c77c7..d0877b5617 100644
--- a/conference.js
+++ b/conference.js
@@ -1588,10 +1588,6 @@ export default {
if (didHaveVideo) {
promise = promise.then(() => createLocalTracksF({ devices: [ 'video' ] }))
.then(([ stream ]) => this.useVideoStream(stream))
- .then(() => {
- sendAnalytics(createScreenSharingEvent('stopped'));
- logger.log('Screen sharing stopped.');
- })
.catch(error => {
logger.error('failed to switch back to local video', error);
@@ -1608,6 +1604,8 @@ export default {
return promise.then(
() => {
this.videoSwitchInProgress = false;
+ sendAnalytics(createScreenSharingEvent('stopped'));
+ logger.info('Screen sharing stopped.');
},
error => {
this.videoSwitchInProgress = false;