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