Skip to content

Dispose Webcam #121

@rickguise

Description

@rickguise

Hello.

I transformed the WebcamViewerExample to a JDialog which is called from a JFrame and works fine until I close and reopen the dialog where the FPS falls to half. Each time I reopen the Dialog, the frames fall some more until the image is very slow. The System.out.println indicates multiple "webcam open" and "webcam closed", for example, the third time I open the JDialog, I get 3 "webcam open". I also tried putting webcam.close() and panel.stop() in the webcamClosed event.

Is this a Dispose problem, I cannot get the webcamDisposed event to fire.

Thanks

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions