8000 Fixed errors. · snow611/flutter-webrtc@dec1480 · GitHub
[go: up one dir, main page]

Skip to content

Commit dec1480

Browse files
committed
Fixed errors.
1 parent 27ce809 commit dec1480

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

android/src/main/java/com/cloudwebrtc/webrtc/GetUserMediaImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,9 @@ public void onStop() {
451451
WindowManager wm = (WindowManager) applicationContext
452452
.getSystemService(Context.WINDOW_SERVICE);
453453

454-
width = wm.getDefaultDisplay().getWidth();
455-
height = wm.getDefaultDisplay().getHeight();
454+
int width = wm.getDefaultDisplay().getWidth();
455+
int height = wm.getDefaultDisplay().getHeight();
456+
int fps = DEFAULT_FPS;
456457

457458
videoCapturer.startCapture(width, height, fps);
458459

0 commit comments

Comments
 (0)
0