sskodje / ScreenRecorderLib

A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images.
MIT License
408 stars 93 forks source link

How to show camera preview? #252

Closed Praveen-Jeffri closed 1 year ago

Praveen-Jeffri commented 1 year ago

I am implemented the camera recording and it is working good , don't know how to show the preview , please help me with that

sskodje commented 1 year ago

There's no functionality for previewing cameras in this library, but perhaps you can use the windows community toolkit. I haven't tested it myself though, but worth a shot. https://learn.microsoft.com/en-us/windows/communitytoolkit/controls/camerapreview.

edit: I realize the link is only for UWP projects. You have to search around for how to do it on other platforms then. Or ask ChatGPT :)