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

Android 11 Not Working #4

Open
Hitskalkani opened this issue Jun 24, 2021 · 2 comments
Open

Android 11 Not Working #4

Hitskalkani opened this issue Jun 24, 2021 · 2 comments

Comments

@Hitskalkani
Copy link

In Android 11 (Api level 29 or 30) Not Working
Caused by: java.lang.SecurityException: Media projections require a foreground service of type ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION

@fukemy
Copy link

fukemy commented Oct 6, 2021

this lib is dead, let using https://github.com/HBiSoft/HBRecorder

@hemandroid
Copy link

@Hitskalkani The error is telling you that you need to run the media project API as a Foreground service. Moreover, I have tested the code as it was working on Android 12 as well.

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

3 participants