Skip to content
New issue

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

屏幕录制闪退 #59

Open
337077418 opened this issue Nov 10, 2021 · 0 comments
Open

屏幕录制闪退 #59

337077418 opened this issue Nov 10, 2021 · 0 comments

Comments

@337077418
Copy link

WebRTCEngine中设置screencaptureEnabled= true 之后不会弹出用户录屏权限导致闪退
请问一下,我平时用录屏都是用这种方式
1.MediaProjectionManager manager = (MediaProjectionManager)getSystemService(MEDIA_PROJECTION_SERVICE);
Intent intent = manager.createScreenCaptureIntent();
startActivityForResult(intent,REQ_REMOTE_HELP);

2.protected void onActivityResult(int requestCode, int resultCode, @nullable Intent data) {
if(requestCode == REQ_REMOTE_HELP && resultCode == RESULT_OK){
captureIntent = data; //在这里保存data
}
}
但是您似乎是直接在WebRTCEngine中createScreenCapturer()获取VideoCapturer
这种方式怎么获取用户录屏授权的呢?

方便的话可以请教一下您,该怎么实现改摄像成录屏传送吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant