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'],
|
||||
function (avStream) {
|
||||
callback(avStream);
|
||||
trackUsage('localMedia', {
|
||||
audio: avStream.getAudioTracks().length,
|
||||
video: avStream.getVideoTracks().length
|
||||
});
|
||||
},
|
||||
function (error) {
|
||||
console.error('failed to obtain audio/video stream - stop', error);
|
||||
trackUsage('localMediaError', {
|
||||
media: error.media || 'video',
|
||||
name : error.name
|
||||
});
|
||||
},
|
||||
config.resolution || '360');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue