fix: Send SS stopped analytics event when SS was started in video mute state
This commit is contained in:
parent
ce286f9be8
commit
bd64c14aaa
|
@ -1588,10 +1588,6 @@ export default {
|
||||||
if (didHaveVideo) {
|
if (didHaveVideo) {
|
||||||
promise = promise.then(() => createLocalTracksF({ devices: [ 'video' ] }))
|
promise = promise.then(() => createLocalTracksF({ devices: [ 'video' ] }))
|
||||||
.then(([ stream ]) => this.useVideoStream(stream))
|
.then(([ stream ]) => this.useVideoStream(stream))
|
||||||
.then(() => {
|
|
||||||
sendAnalytics(createScreenSharingEvent('stopped'));
|
|
||||||
logger.log('Screen sharing stopped.');
|
|
||||||
})
|
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
logger.error('failed to switch back to local video', error);
|
logger.error('failed to switch back to local video', error);
|
||||||
|
|
||||||
|
@ -1608,6 +1604,8 @@ export default {
|
||||||
return promise.then(
|
return promise.then(
|
||||||
() => {
|
() => {
|
||||||
this.videoSwitchInProgress = false;
|
this.videoSwitchInProgress = false;
|
||||||
|
sendAnalytics(createScreenSharingEvent('stopped'));
|
||||||
|
logger.info('Screen sharing stopped.');
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
this.videoSwitchInProgress = false;
|
this.videoSwitchInProgress = false;
|
||||||
|
|
Loading…
Reference in New Issue