com.github.sarxos.webcam.WebcamEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webcam-capture Show documentation
Show all versions of webcam-capture Show documentation
This library allows you to use your PC webcam, IP or network cameras directly from Java. It's compatible with most operating systems (Windows, Linux, MacOS).
package com.github.sarxos.webcam;
import java.util.EventObject;
/**
* Webcam event.
*
* @author Bartosz Firyn (SarXos)
*/
public class WebcamEvent extends EventObject {
private static final long serialVersionUID = 7701762815832038598L;
/**
* Webcam event.
*
* @param w - webcam object
*/
public WebcamEvent(Webcam w) {
super(w);
}
@Override
public Webcam getSource() {
return (Webcam) super.getSource();
}
}