com.teamdev.jxcapture.video.win.directshow
Class MediaEventMonitor

java.lang.Object
  extended by com.teamdev.jxcapture.video.win.directshow.MediaEventMonitor

public class MediaEventMonitor
extends java.lang.Object

Thread that monitors media events in a IMediaControl object.


Constructor Summary
MediaEventMonitor(IMediaEvent mediaEvent)
          Creates the monitor for the given filter graph
 
Method Summary
 void init(IMediaEvent mediaEvent)
           
 java.util.List<MediaEventListener> mediaEventListeners()
          Returns the list that contains all media event listeners.
 void start()
          Starts this monitor.
 void stop()
          Stops this monitor.
 void waitForCompletion()
          Forces current thread to wait until graph finishes the playback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaEventMonitor

public MediaEventMonitor(IMediaEvent mediaEvent)
Creates the monitor for the given filter graph

Parameters:
mediaEvent - medi
Method Detail

init

public void init(IMediaEvent mediaEvent)

start

public void start()
Starts this monitor.


stop

public void stop()
Stops this monitor.


waitForCompletion

public void waitForCompletion()
Forces current thread to wait until graph finishes the playback.


mediaEventListeners

public java.util.List<MediaEventListener> mediaEventListeners()
Returns the list that contains all media event listeners.

Returns:
list of media event listeners