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

Windows support #83

Merged
merged 3 commits into from
Oct 23, 2023
Merged

Windows support #83

merged 3 commits into from
Oct 23, 2023

Conversation

paoldev
Copy link
Contributor

@paoldev paoldev commented Nov 26, 2022

Fixes #26

I added Windows support for an application of mine.
It's mainly based on documentation found at https://learn.microsoft.com/en-us/windows/uwp/audio-video-camera/process-media-frames-with-mediaframereader, as a replacement for the CaptureElement.

I tested it with an USB camera, although the camera doesn't support focus and torch features, so that related part is still untested.

This PR may require additional code clean-up and refactoring as suggested by any possible review.
For example, it supports autodetection of camera connection and disconnection: the original CaptureElement seems to not support this feature, so it may be removed from this PR to keep the code aligned to CaptureElement behaviour (and autodetection code may be moved at application level).
The relevant file is CameraManager.windows.cs.

Let me know if this PR may be useful as a Windows starting point; feel free to close it if not needed.
Regards

@MartyIX
Copy link

MartyIX commented Mar 25, 2023

@Redth Would you have a moment to review this PR?

@SunshineSpring666
Copy link

Hi guys,
The Windows support is quite great. It makes the cross-platform lib support all major platforms, making code scanning available for most desktop devices.
Could the author @Redth please merge this feature into the main branch and release a NuGet package?
Thanks a lot.
Best Regards

@baaaaif baaaaif mentioned this pull request Jul 13, 2023
@Redth Redth merged commit 85a0b9a into Redth:main Oct 23, 2023
@daveblt
Copy link

daveblt commented Jan 14, 2024

Hello, I'd like to ask is the merging of this pull request means that the barcode reader will be supported on Windows now? Or does it need something more to fully function?

@paoldev
Copy link
Contributor Author

paoldev commented Jan 15, 2024

@daveblt This PR added initial support for Windows scanner, but PR #146 may be required to make it more stable (when closing camera stream), mainly for AppShell applications.

@daveblt
Copy link

daveblt commented Jan 16, 2024

Understood, thank you! Much appreciated.

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

Successfully merging this pull request may close these issues.

Windows support (project migrated from Xamarin using Redth/ZXing.Net.Mobile)
5 participants