org.dvb.media
Class ServiceRemovedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.media.ControllerEvent
          extended by javax.media.TransitionEvent
              extended by javax.media.StopEvent
                  extended by org.dvb.media.ServiceRemovedEvent
All Implemented Interfaces:
java.io.Serializable, javax.media.MediaEvent

public class ServiceRemovedEvent
extends javax.media.StopEvent

This event is generated whenever access to a service stops because the service concerned has been removed from the network. Generation of this event informs the application that the Player is no longer presenting any content.

Since:
MHP 1.0.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServiceRemovedEvent(javax.media.Controller source)
          Construct an event.
ServiceRemovedEvent(javax.media.Controller source, int previous, int current, int target, javax.media.MediaLocator stream)
          Construct an event.
 
Method Summary
 javax.media.MediaLocator getStream()
          This method returns the stream which was removed from the network
 
Methods inherited from class javax.media.StopEvent
getMediaTime
 
Methods inherited from class javax.media.TransitionEvent
getCurrentState, getPreviousState, getTargetState
 
Methods inherited from class javax.media.ControllerEvent
getSource, getSourceController
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceRemovedEvent

public ServiceRemovedEvent(javax.media.Controller source)
Construct an event.

Parameters:
source - the controller which was presenting the service

ServiceRemovedEvent

public ServiceRemovedEvent(javax.media.Controller source,
                           int previous,
                           int current,
                           int target,
                           javax.media.MediaLocator stream)
Construct an event.

Parameters:
source - the controller which was presenting the service
stream - the locator of the stream which was removed from the network
previous - the previous state of the controller
current - the current state of the controller
target - the target state of the controller
Method Detail

getStream

public javax.media.MediaLocator getStream()
This method returns the stream which was removed from the network

Returns:
the stream concerned