Webcam example does not display live feed
Similar to https://github.com/gopro/OpenGoPro/issues/202, posting here because of differences in context and potentially different fix.
Component
- Demos/csharp/webcam
Describe the bug When running the webcam example in C#, the viewing window stays black and does not display a live feed when pressing the Start Webcam or Show Preview buttons. The device, a GoPro Hero10 Black, connected by USB changes state as expected and the log window reflects these status changes (stop => status 1, start => status 2, preview = status 3) and there are no errors in the Visual Studio output log (error code is 0).
To Reproduce Steps to reproduce the behavior:
- Open the GoProWebcamViewer project in Demos/csharp/webcam
- Change: var vlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine("./", "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64")); to a valid local path, in my case: var vlcLibDirectory = new DirectoryInfo("C:/Program Files (x86)/VideoLAN/VLC");
- Run the program
- Click the Start Webcam or Show Preview button, or any combination of buttons.
- Black screen remains unchanged, does not display video
Expected behavior Video screen displays a video feed from the connected camera after clicking Start Webcam or Show Preview.
Hardware
- Camera: GoPro Hero10 black
- Windows 10 laptop
Additional context Goal is to replicate logic for displaying a live feed with UDP, with a future iteration of the project displaying and saving to disk multiple GoPro camera feeds simultaneously.