8000
We read every piece of feedback, and take your input very seriously.
1 parent c65e948 commit 27ce809Copy full SHA for 27ce809
android/src/main/java/com/cloudwebrtc/webrtc/GetUserMediaImpl.java
@@ -448,20 +448,6 @@ public void onStop() {
448
SurfaceTextureHelper surfaceTextureHelper = SurfaceTextureHelper.create(threadName, EglUtils.getRootEglBaseContext());
449
videoCapturer.initialize(surfaceTextureHelper, context, videoSource.getCapturerObserver());
450
451
- // Fall back to defaults if keys are missing.
452
- int width
453
- = videoConstraintsMandatory2.hasKey("minWidth")
454
- ? videoConstraintsMandatory2.getInt("minWidth")
455
- : DEFAULT_WIDTH;
456
- int height
457
- = videoConstraintsMandatory2.hasKey("minHeight")
458
- ? videoConstraintsMandatory2.getInt("minHeight")
459
- : DEFAULT_HEIGHT;
460
- int fps
461
- = videoConstraintsMandatory2.hasKey("minFrameRate")
462
- ? videoConstraintsMandatory2.getInt("minFrameRate")
463
- : DEFAULT_FPS;
464
-
465
WindowManager wm = (WindowManager) applicationContext
466
.getSystemService(Context.WINDOW_SERVICE);
467
example/lib/src/get_display_media_sample.dart
@@ -47,16 +47,8 @@ class _GetDisplayMediaSampleState extends State<GetDisplayMediaSample> {
47
// Platform messages are asynchronous, so we initialize in an async method.
48
_makeCall() async {
49
final Map<String, dynamic> mediaConstraints = {
50
- "audio": true,
51
- "video": {
52
- "mandatory": {
53
- "minWidth":'1280', // Provide your own width, height and frame rate here
54
- "minHeight": '720',
55
- "minFrameRate": '30',
56
- },
57
- "facingMode": "user",
58
- "optional": [],
59
- }
+ "audio": false,
+ "video": true
60
};
61
62
try {