-
Notifications
You must be signed in to change notification settings - Fork 28
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
SetPreviewRotation display issue #26
Comments
You should be able to reuse the code there (there is a NuGet, but it might even be simpler to just copy/paste the code): https://github.com/mmaitre314/MediaCaptureExtensions#rotate-preview-without-extra-black-bars |
@ok, I have downloaded NuGet package and change initialization code to:
I get error message:
Before I had only webcam selected in capabilities and it worked - do I need to do something more in manifest? |
On MediaCaptureInitializationSettings you can try setting StreamingCaptureMode to Video. |
This works - but the camera preview is rotated. Adding line
after initilization works but there are black bars. But adding
Results in error:
|
OK - I managed to get rid of side black bars by changing xaml to:
|
Hi, I wanted to make display portrait so I called
capture.SetPreviewRotation(VideoRotation.Clockwise90Degrees);
after capture initialization and I ended up having some strange black part where the rest of camera preview should have been.
Is there something I should do or some different way to achieve my goal?
The text was updated successfully, but these errors were encountered: