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

MediaCapture support #9952

Open
NalonAu opened this issue Sep 23, 2022 · 1 comment
Open

MediaCapture support #9952

NalonAu opened this issue Sep 23, 2022 · 1 comment
Labels
epic kind/enhancement New feature or request project/media 📺 Categorizes an issue or PR as relevant to media (MediaPlayer, WebView, PDF, Image, …) project/non-ui ⚙️ Categorizes an issue or PR as relevant to winrt (non-ui)

Comments

@NalonAu
Copy link

NalonAu commented Sep 23, 2022

Current behavior

I have a Uno app using .NET 6 and using the latest WinUI. I have tried implementing a camera control using https://learn.microsoft.com/en-us/dotnet/api/communitytoolkit.winui.ui.controls.camerapreview?view=win-comm-toolkit-dotnet-7.0 ... I have had a lot of issues doing this.

Thanks to Martin he has explained the following:

Hi! The problem here is probably the fact that the control is using some APIs which are not yet implemented in Uno Platform (camera preview in general is not there yet), so probably the only way to work around this right now would be to write a platform-specific native control for this purpose.

But please file an issue for the fact that the control is not working, so we know it is something we should look into.

Expected behavior

Camera should work as per the community toolkit examples for Camera Preview

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

No

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

No response

Affected platforms

Windows

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@NalonAu NalonAu added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Sep 23, 2022
@jeromelaban
Copy link
Member

Thanks for the report. This class relies on (at least) MediaPlayer.Source and MediaCapture being implemented, which is currently not the case. If you want to capture images natively, for now your best option is to use the native APIs, like this one.

@jeromelaban jeromelaban added project/non-ui ⚙️ Categorizes an issue or PR as relevant to winrt (non-ui) kind/enhancement New feature or request and removed kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Sep 26, 2022
@jeromelaban jeromelaban changed the title Uno Platform - Community toolkit CameraPreview not working MediaCapture support Sep 26, 2022
@MartinZikmund MartinZikmund changed the title MediaCapture support MediaCapture support Aug 16, 2023
@MartinZikmund MartinZikmund added epic project/media 📺 Categorizes an issue or PR as relevant to media (MediaPlayer, WebView, PDF, Image, …) and removed difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic kind/enhancement New feature or request project/media 📺 Categorizes an issue or PR as relevant to media (MediaPlayer, WebView, PDF, Image, …) project/non-ui ⚙️ Categorizes an issue or PR as relevant to winrt (non-ui)
Projects
None yet
Development

No branches or pull requests

3 participants