org.dvb.media.ServiceRemovedEvent Maven / Gradle / Ivy
package org.dvb.media;
import javax.media.StopEvent;
import javax.media.Controller;
/**
* 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
*/
public class ServiceRemovedEvent extends StopEvent {
/**
* Construct an event.
*
* @param source the controller which was presenting the service
*/
public ServiceRemovedEvent(Controller source){
super(source,0,0,0,null);
}
/**
* Construct an event.
*
* @param source the controller which was presenting the service
* @param stream the locator of the stream which was removed from the network
* @param previous the previous state of the controller
* @param current the current state of the controller
* @param target the target state of the controller
*/
public ServiceRemovedEvent(Controller source, int previous, int current, int target, javax.media.MediaLocator stream)
{
super(source,0,0,0,null);
}
/**
* This method returns the stream which was removed from the network
*
* @return the stream concerned
*/
public javax.media.MediaLocator getStream()
{
return null;
}
}