8000 Getting screen content can only be successful for the first time (#523) · tmthecoder/flutter-webrtc@0cba663 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cba663

Browse files
authored
Getting screen content can only be successful for the first time (flutter-webrtc#523)
1 parent cfa1e88 commit 0cba663

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,10 @@ protected void onReceiveResult(int requestCode, Bundle resultData) {
471471
new MediaProjection.Callback() {
472472
@Override
473473
public void onStop() {
474-
resultError("MediaProjection.Callback()", "User revoked permission to capture the screen.", result);
474+
super.onStop();
475+
// After Huawei P30 and Android 10 version test, the onstop method is called, which will not affect the next process,
476+
// and there is no need to call the resulterror method
477+
//resultError("MediaProjection.Callback()", "User revoked permission to capture the screen.", result);
475478
}
476479
});
477480
if (videoCapturer == null) {

0 commit comments

Comments
 (0)
0