|
@@ -13,6 +13,7 @@ import CQEvents from './service/connectionquality/CQEvents';
|
13
|
13
|
import UIEvents from './service/UI/UIEvents';
|
14
|
14
|
|
15
|
15
|
import mediaDeviceHelper from './modules/devices/mediaDeviceHelper';
|
|
16
|
+import AnalyticsAdapter from './modules/statistics/AnalyticsAdapter';
|
16
|
17
|
|
17
|
18
|
import {reportError} from './modules/util/helpers';
|
18
|
19
|
|
|
@@ -889,6 +890,7 @@ export default {
|
889
|
890
|
return this.useVideoStream(stream);
|
890
|
891
|
}).then(() => {
|
891
|
892
|
this.videoSwitchInProgress = false;
|
|
893
|
+ AnalyticsAdapter.sendEvent('conference.sharingDesktop.start');
|
892
|
894
|
console.log('sharing local desktop');
|
893
|
895
|
}).catch((err) => {
|
894
|
896
|
this.videoSwitchInProgress = false;
|
|
@@ -934,6 +936,7 @@ export default {
|
934
|
936
|
([stream]) => this.useVideoStream(stream)
|
935
|
937
|
).then(() => {
|
936
|
938
|
this.videoSwitchInProgress = false;
|
|
939
|
+ AnalyticsAdapter.sendEvent('conference.sharingDesktop.stop');
|
937
|
940
|
console.log('sharing local video');
|
938
|
941
|
}).catch((err) => {
|
939
|
942
|
this.useVideoStream(null);
|
|
@@ -1292,6 +1295,7 @@ export default {
|
1292
|
1295
|
try {
|
1293
|
1296
|
room.selectParticipant(id);
|
1294
|
1297
|
} catch (e) {
|
|
1298
|
+ AnalyticsAdapter.sendEvent('selectParticipant.failed');
|
1295
|
1299
|
reportError(e);
|
1296
|
1300
|
}
|
1297
|
1301
|
});
|
|
@@ -1316,6 +1320,7 @@ export default {
|
1316
|
1320
|
APP.UI.addListener(
|
1317
|
1321
|
UIEvents.VIDEO_DEVICE_CHANGED,
|
1318
|
1322
|
(cameraDeviceId) => {
|
|
1323
|
+ AnalyticsAdapter.sendEvent('settings.changeDevice.video');
|
1319
|
1324
|
createLocalTracks({
|
1320
|
1325
|
devices: ['video'],
|
1321
|
1326
|
cameraDeviceId: cameraDeviceId,
|
|
@@ -1336,6 +1341,7 @@ export default {
|
1336
|
1341
|
APP.UI.addListener(
|
1337
|
1342
|
UIEvents.AUDIO_DEVICE_CHANGED,
|
1338
|
1343
|
(micDeviceId) => {
|
|
1344
|
+ AnalyticsAdapter.sendEvent('settings.changeDevice.audioIn');
|
1339
|
1345
|
createLocalTracks({
|
1340
|
1346
|
devices: ['audio'],
|
1341
|
1347
|
cameraDeviceId: null,
|
|
@@ -1356,6 +1362,7 @@ export default {
|
1356
|
1362
|
APP.UI.addListener(
|
1357
|
1363
|
UIEvents.AUDIO_OUTPUT_DEVICE_CHANGED,
|
1358
|
1364
|
(audioOutputDeviceId) => {
|
|
1365
|
+ AnalyticsAdapter.sendEvent('settings.changeDevice.audioOut');
|
1359
|
1366
|
APP.settings.setAudioOutputDeviceId(audioOutputDeviceId)
|
1360
|
1367
|
.then(() => console.log('changed audio output device'))
|
1361
|
1368
|
.catch((err) => {
|