public static List < Webcam > getWebcams ( ) throws WebcamException { // timeout exception below will never be caught since user would have to // wait around three hundreds billion years for it to occur try { return getWebcams ( Long . MAX_VALUE ) ; } catch ( TimeoutException e ) { throw new RuntimeException ( e ) ; } }
Get list of webcams to use . This method will wait predefined time interval for webcam devices to be discovered . By default this time is set to 1 minute .