OpenGoPro icon indicating copy to clipboard operation
OpenGoPro copied to clipboard

Webcam example does not display live feed

Open Will9371 opened this issue 3 years ago • 0 comments

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:

  1. Open the GoProWebcamViewer project in Demos/csharp/webcam
  2. 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");
  3. Run the program
  4. Click the Start Webcam or Show Preview button, or any combination of buttons.
  5. 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.

Will9371 avatar Jul 08 '22 08:07 Will9371