Package gda.images.camera
Interface VideoReceiver<E>
- All Superinterfaces:
Configurable
- All Known Implementing Classes:
DummyAwtVideoReceiver,DummyAwtVideoReceiverWithImage,DummyOavAwtVideoReceiver,DummySwtVideoReceiver,DummySwtVideoReceiverWithImage,DummyVideoReceiverBase,I18MotionJpegOverHttpReceiverSwt,MotionJpegOverHttpReceiver,MotionJpegOverHttpReceiverBase,MotionJpegOverHttpReceiverSwt
Interface to be implemented by objects that can receive video streams and send the frames to any number of
ImageListeners.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddImageListener(ImageListener<E> listener) Adds a listener to which captured frames will be passed.voidDisconnects from the video stream.voidConnects to the video stream and starts dispatching images to listeners.Returns the video source's display name.getImage()Grabs a frame from the video stream.voidremoveImageListener(ImageListener<E> listener) Removes a listener from the list of listeners to which captured frames will be passed.voidstart()Starts frame capture.voidstop()Stops frame capture.Methods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigure
-
Method Details
-
addImageListener
Adds a listener to which captured frames will be passed. -
removeImageListener
Removes a listener from the list of listeners to which captured frames will be passed. -
createConnection
void createConnection()Connects to the video stream and starts dispatching images to listeners. -
stop
void stop()Stops frame capture. -
start
void start()Starts frame capture. -
getImage
Grabs a frame from the video stream.- Throws:
DeviceException
-
closeConnection
void closeConnection()Disconnects from the video stream. -
getDisplayName
String getDisplayName()Returns the video source's display name. This is a label used in the UI to distinguish between multiple video sources.- Returns:
- display name
-