8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following code enables rear camera on iOS but still uses front camera on Android
final Map<String, dynamic> mediaConstraints = { 'audio': true, 'video': { 'mandatory': { 'minWidth': '1280', 'minHeight': '720', 'minFrameRate': '24' } }, 'facingMode': 'environment', 'optional': [] }; _localStream = await navigator.getUserMedia(mediaConstraints);
Tested on Samsung Galaxy S8+ with Oreo 8.0 and on OnePlus 5T with custom rom 9.0
The text was updated successfully, but these errors were encountered:
This way it works:
final Map<String, dynamic> mediaConstraints = { 'audio': true, 'video': { 'mandatory': { 'minWidth': '1280', 'minHeight': '720', 'minFrameRate': '24' }, 'facingMode': 'environment' }, 'facingMode': 'environment', 'optional': [] }; _localStream = await navigator.getUserMedia(mediaConstraints);
Bug here: https://github.com/cloudwebrtc/flutter-webrtc/blob/master/android/src/main/java/com/cloudwebrtc/webrtc/GetUserMediaImpl.java#L318
Sorry, something went wrong.
The facingMode and optional needs to be a child kv of video, because this is a parameter about video.
'video': { 'mandatory': { 'minWidth': '1280', 'minHeight': '720', 'minFrameRate': '24' }, 'facingMode': 'environment' 'optional': [] },
Implement video rendering (flutter-webrtc#16, flutter-webrtc#10)
f7a56a9
- `createVideoRenderer` method - `videoRendererDispose` method - `videoRendererSetSrcObject` method
No branches or pull requests