Browse Source

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

master
Jaya Allamsetty 4 years ago
parent
commit
bd64c14aaa
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      conference.js

+ 2
- 4
conference.js View File

1588
         if (didHaveVideo) {
1588
         if (didHaveVideo) {
1589
             promise = promise.then(() => createLocalTracksF({ devices: [ 'video' ] }))
1589
             promise = promise.then(() => createLocalTracksF({ devices: [ 'video' ] }))
1590
                 .then(([ stream ]) => this.useVideoStream(stream))
1590
                 .then(([ stream ]) => this.useVideoStream(stream))
1591
-                .then(() => {
1592
-                    sendAnalytics(createScreenSharingEvent('stopped'));
1593
-                    logger.log('Screen sharing stopped.');
1594
-                })
1595
                 .catch(error => {
1591
                 .catch(error => {
1596
                     logger.error('failed to switch back to local video', error);
1592
                     logger.error('failed to switch back to local video', error);
1597
 
1593
 
1608
         return promise.then(
1604
         return promise.then(
1609
             () => {
1605
             () => {
1610
                 this.videoSwitchInProgress = false;
1606
                 this.videoSwitchInProgress = false;
1607
+                sendAnalytics(createScreenSharingEvent('stopped'));
1608
+                logger.info('Screen sharing stopped.');
1611
             },
1609
             },
1612
             error => {
1610
             error => {
1613
                 this.videoSwitchInProgress = false;
1611
                 this.videoSwitchInProgress = false;

Loading…
Cancel
Save