add GUM tracking
This commit is contained in:
parent
2d07ba1141
commit
381b764c4f
8
app.js
8
app.js
|
@ -159,9 +159,17 @@ function obtainAudioAndVideoPermissions(callback) {
|
||||||
['audio', 'video'],
|
['audio', 'video'],
|
||||||
function (avStream) {
|
function (avStream) {
|
||||||
callback(avStream);
|
callback(avStream);
|
||||||
|
trackUsage('localMedia', {
|
||||||
|
audio: avStream.getAudioTracks().length,
|
||||||
|
video: avStream.getVideoTracks().length
|
||||||
|
});
|
||||||
},
|
},
|
||||||
function (error) {
|
function (error) {
|
||||||
console.error('failed to obtain audio/video stream - stop', error);
|
console.error('failed to obtain audio/video stream - stop', error);
|
||||||
|
trackUsage('localMediaError', {
|
||||||
|
media: error.media || 'video',
|
||||||
|
name : error.name
|
||||||
|
});
|
||||||
},
|
},
|
||||||
config.resolution || '360');
|
config.resolution || '360');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue