Custom resolution of outcome video do not work!
lecong opened this issue · comments
lecong commented
Hi,
I want to share camera with different resolutions by changing width, height and frameRate according to below code:
final Map<String, dynamic> mediaConstraints = {
'audio': true,
'video': {
'width: <width>,
'height': <height>,
'frameRate': <frameRate (10-60)>,
'facingMode': 'user',
'optional': [],
}
};
MediaStream stream = await navigator.mediaDevices
.getUserMedia(mediaConstraints)
.catchError((e) {
Log.error("An error occurred while trying to open a webcam stream: '$e'");
});
but it not work!
How to share camera width different resolutions?
Benjamin Michel commented
As I recall we tried that as well, but it seems to be ignored no matter what values are passed there. It may be either a problem with flutter_webrtc
or with BBB itself, but we had no time to research there.