org.davic.media
Class MediaTimeEvent

java.lang.Object
  extended by org.davic.media.MediaTimeEvent

public class MediaTimeEvent
extends java.lang.Object

The MediaTimeEvent class describes events that are associated with the stream by the application. These events are posted whenever the Controller encounters a media position which has been associated with the stream by the local application. The event includes the associated media time encoded as a long and the event identification encoded as an int.


Constructor Summary
MediaTimeEvent(java.lang.Object source, long eventTime, int ID)
          Make an event
 
Method Summary
 int getEventId()
           
 long getEventTime()
           
 java.lang.Object getSource()
          This method returns the source for the event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaTimeEvent

public MediaTimeEvent(java.lang.Object source,
                      long eventTime,
                      int ID)
Make an event

Parameters:
source - the object generating the event
eventTime - the media time at which the event fired
ID - the event identification
Method Detail

getEventTime

public long getEventTime()
Returns:
the time with which this event was associated

getEventId

public int getEventId()
Returns:
the identification of this event

getSource

public java.lang.Object getSource()
This method returns the source for the event. It may be inherited from sunw.util.EventObject or java.util.EventObject

Returns:
the source of the event