Allow integrated or USB-connected webcams to be accessed from Java
...This is where WebcamCapture API comes to save the world - it was created to remove the burden of such situations so you do not have to rewrite your code ever again, but instead, you can simply switch the driver class to a different one.