Updated resolution handling.
parent
bca6db0e5e
commit
7857ae27dd
|
|
@ -48,6 +48,9 @@ export default class RoomClient
|
|||
// Redux store getState function.
|
||||
this._getState = getState;
|
||||
|
||||
// This device
|
||||
this._device = device;
|
||||
|
||||
// My peer name.
|
||||
this._peerName = peerName;
|
||||
|
||||
|
|
@ -459,6 +462,16 @@ export default class RoomClient
|
|||
|
||||
logger.debug('changeWebcam() | calling getUserMedia()');
|
||||
|
||||
if (this._device.flag !== 'chrome')
|
||||
return navigator.mediaDevices.getUserMedia(
|
||||
{
|
||||
video :
|
||||
{
|
||||
deviceId : { exact: device.deviceId },
|
||||
width : { ideal: 3840 }
|
||||
}
|
||||
});
|
||||
else
|
||||
return navigator.mediaDevices.getUserMedia(
|
||||
{
|
||||
video :
|
||||
|
|
@ -550,6 +563,16 @@ export default class RoomClient
|
|||
|
||||
logger.debug('changeWebcamResolution() | calling getUserMedia()');
|
||||
|
||||
if (this._device.flag !== 'chrome')
|
||||
return navigator.mediaDevices.getUserMedia(
|
||||
{
|
||||
video :
|
||||
{
|
||||
deviceId : { exact: device.deviceId },
|
||||
width : { ideal: 3840 }
|
||||
}
|
||||
});
|
||||
else
|
||||
return navigator.mediaDevices.getUserMedia(
|
||||
{
|
||||
video :
|
||||
|
|
@ -1473,6 +1496,16 @@ export default class RoomClient
|
|||
|
||||
logger.debug('_setWebcamProducer() | calling getUserMedia()');
|
||||
|
||||
if (this._device.flag !== 'chrome')
|
||||
return navigator.mediaDevices.getUserMedia(
|
||||
{
|
||||
video :
|
||||
{
|
||||
deviceId : { exact: device.deviceId },
|
||||
width : { ideal: 3840 }
|
||||
}
|
||||
});
|
||||
else
|
||||
return navigator.mediaDevices.getUserMedia(
|
||||
{
|
||||
video :
|
||||
|
|
|
|||
Loading…
Reference in New Issue