sarxos / webcam-capture

The goal of this project is to allow integrated or USB-connected webcams to be accessed directly from Java. Using provided libraries users are able to read camera images and detect motion. Main project consist of several sub projects - the root one, which contains required classes, build-in webcam driver compatible with Windows, Linux and Mac OS, which can stream images as fast as your camera can serve them (up to 50 FPS). Main project can be used standalone, but user is able to replace build-in driver with different one - such as OpenIMAJ, GStreamer, V4L4j, JMF, LTI-CIVIL, FMJ, etc.
http://webcam-capture.sarxos.pl
MIT License
2.26k stars 1.11k forks source link

Github Actions maven.yml: Add java 17 to matrix #894

Open msgilligan opened 1 year ago

msgilligan commented 1 year ago

Add Java 17 to the matrix in maven.yml.

There is currently an issue with Powermock and Java 17 that prevent the driver-vlcj module from successfully running tests, so this PR currently breaks the build. (I'm not sure how to fix the PowerMock issue, I'm hoping someone with more knowledge of PowerMock and/or the tests in driver-vlcj that use it will provide a solution.)

This PR depends upon PR #893 (so that the GitHub Actions build proceeds far enough to illustrate the remaining issue in driver-vlcj)

msgilligan commented 1 year ago

Interesting, the behavior of the tests under Github Actions tests on macOS is as I predicted above (passes on JDK 11, fails on JDK 17 with a PowerMock/modules issue) but the Linux tests are failing with a "no headless X11" issue on both JDK 11 and JDK 17.

I converted this PR to DRAFT since until the above issues are resolved it does not build.

ssingh-cls commented 1 year ago

Hi @msgilligan, I need to integrate this webcam-capture in web application being accessed by users via browser and not in standalone/desktop type application.

Can you please confirm that this webcam-capture library will open end user's desktop/laptop camera when user is accessing my web application via browser? Thanks!