@@ -583,7 +583,7 @@ MatrixCall.prototype._maybeGotUserMediaForInvite = function(stream) {
583
583
' Or possibly you are using an insecure domain. Receiving only.' ) ;
584
584
this . peerConn = _createPeerConnection ( this ) ;
585
585
} else {
586
- debuglog ( 'Failed to getUserMedia.' ) ;
586
+ debuglog ( 'Failed to getUserMedia: ' + error . name ) ;
587
587
this . _getUserMediaFailed ( error ) ;
588
588
return ;
589
589
}
@@ -652,7 +652,7 @@ MatrixCall.prototype._maybeGotUserMediaForAnswer = function(stream) {
652
652
debuglog ( 'User denied access to camera/microphone.' +
653
653
' Or possibly you are using an insecure domain. Receiving only.' ) ;
654
654
} else {
655
- debuglog ( 'Failed to getUserMedia.' ) ;
655
+ debuglog ( 'Failed to getUserMedia: ' + error . name ) ;
656
656
this . _getUserMediaFailed ( error ) ;
657
657
return ;
658
658
}
@@ -1274,15 +1274,15 @@ const _getUserMediaVideoContraints = function(callType) {
1274
1274
case 'voice' :
1275
1275
return {
1276
1276
audio : {
1277
- deviceId : audioInput ? { exact : audioInput } : undefined ,
1277
+ deviceId : audioInput ? { ideal : audioInput } : undefined ,
1278
1278
} , video : false ,
1279
1279
} ;
1280
1280
case 'video' :
1281
1281
return {
1282
1282
audio : {
1283
- deviceId : audioInput ? { exact : audioInput } : undefined ,
1283
+ deviceId : audioInput ? { ideal : audioInput } : undefined ,
1284
1284
} , video : {
1285
- deviceId : videoInput ? { exact : videoInput } : undefined ,
1285
+ deviceId : videoInput ? { ideal : videoInput } : undefined ,
1286
1286
/* We want 640x360. Chrome will give it only if we ask exactly,
1287
1287
FF refuses entirely if we ask exactly, so have to ask for ideal
1288
1288
instead */
0 commit comments