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

Get permission failed in mUsbReceiver #4

Closed
DimaLiubko opened this issue May 11, 2024 · 3 comments
Closed

Get permission failed in mUsbReceiver #4

DimaLiubko opened this issue May 11, 2024 · 3 comments

Comments

@DimaLiubko
Copy link

Hi!

I'm trying to use your plugin, but when I give permission for the external USB camera in application I see the log 'get permission failed in mUsbReceiver'.
After that video stream is not working at all.

Here is short demo: demo

How to fix it?

@chenyeju295
Copy link
Owner

The issue might be caused by using the emulator. Emulators sometimes don't accurately simulate USB-related functionalities. I suggest trying your app on a real device to see if the problem persists.

@DimaLiubko
Copy link
Author

Hi!
Thanks for the reply.
My demo was on a real Android device via (Vysor mirror).
The problem occurred on Android 10.
On Android 14 it works fine.

@chenyeju295
Copy link
Owner

I got it, android 10 adjusts the security level, for apk using third party uvccamera library, if the compiled apk targetSdkVersion version is greater than or equal to 28, android 10 can't get the permission to call USB camera! If you want to run it on Android 10, you need to lower the targetSdkVersion to 27 to be able to do so. Thank you, I'll update the readme.

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

2 participants