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

.NET MAUI Blazor UWP doesn't not allow camera access through javascript library or functions. #10176

Closed
Guandaru6967 opened this issue Sep 16, 2022 · 4 comments
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/windows 🪟 s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@Guandaru6967
Copy link

Guandaru6967 commented Sep 16, 2022

Description

When camera or microphone access is requested by the user through javascript library or function the prompt does not appear nor are the privilages granted to the MAUI APP allocated to the WebView. However it should be noted that prompts and alerts work on UWP but not permission prompts. If any it should be well documented cause i found out that webview and blazorwebview are not so different yet there is only permissions documentation on WebView only, despite BlazorWebView being an abstraction of WebView.

Steps to Reproduce

Create MAUI App and request camera and microphone through

navigator.mediaDevices.getUserMedia({video:true,audio:true})

Then call the zoom function on after render. The permissions to the MAUI APP on windows is not granted to the app and the permission prompt DOESNT APPEAR.

Link to public reproduction project repository

N/A

Version with bug

6.0.312

Last version that worked well

6.0.312

Affected platforms

Windows

Affected platform versions

ALL WINDOWS

Did you find any workaround?

Not yet still looking.

Relevant log output

No log out put
@Guandaru6967 Guandaru6967 added the t/bug Something isn't working label Sep 16, 2022
@Guandaru6967 Guandaru6967 changed the title .NET MAUI UWP doesn't not allow camera access through javascript library or functions. .NET MAUI Blazor UWP doesn't not allow camera access through javascript library or functions. Sep 16, 2022
@janseris
Copy link

I read some time ago that you have to add some permissions to the windows platform manifest

@Eilon Eilon added the area-blazor Blazor Hybrid / Desktop, BlazorWebView label Sep 19, 2022
@mkArtakMSFT
Copy link
Member

Thanks for contacting us. This repo contains sample project which shows how to set permissions as necessary: https://github.com/MackinnonBuck/MauiBlazorPermissionsExample

Hope this helps.

@mkArtakMSFT mkArtakMSFT added the s/needs-info Issue needs more info from the author label Sep 20, 2022
@ghost
Copy link

ghost commented Sep 20, 2022

Hi @Guandaru6967. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label Sep 26, 2022
@ghost
Copy link

ghost commented Sep 26, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed Sep 29, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Oct 29, 2022
@ghost ghost removed the s/no-recent-activity Issue has had no recent activity label Feb 1, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/windows 🪟 s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants