flutter-webrtc
flutter-webrtc copied to clipboard
getUserMedia() permanently denied state
Is your feature request related to a problem? Please describe.
I am using getUserMedia() to access media devices It shows a permission dialog on Android. When I press deny 2 times in a row or I select don't ask again option it doesn't show a new dialog as expected but even if it is denied just for once or permanently it gives the same message getUserMedia(): DOMException, NotAllowedError
. I want to show a button to go to the settings and change the permission from there if it is denied permanently but I can't get if it is denied just for once or permanently.
Describe the solution you'd like I don't know the implementation details but If getUserMedia() can catches the denying state then it can throw different exceptions for permanently denied state
Maybe you can do this with permission_handler before starting the webrtc call?
Actually at first I thought I need that package to get permissions but when I see flutter_webrtc package was doing the permission job I didn't use it. Then I noticed that permanently denied state is not handled in flutter_webrtc package but I think you're right I guess I can solve the problem with that package. Thank you.