org.ocap.media
Class MediaPresentationEvent
java.lang.Object
java.util.EventObject
javax.media.ControllerEvent
javax.media.TransitionEvent
org.ocap.media.MediaPresentationEvent
- All Implemented Interfaces:
- java.io.Serializable, javax.media.MediaEvent
- Direct Known Subclasses:
- AlternativeMediaPresentationEvent, NormalMediaPresentationEvent
public abstract class MediaPresentationEvent
- extends javax.media.TransitionEvent
MediaPresentationEvent
is a JMF event used as the parent
class of events indicating dynamic changes to the presentation of
media components.
This event provides the trigger that leads to the generation of
this event.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
protected |
MediaPresentationEvent(javax.media.Controller from,
int previous,
int current,
int target)
Constructor of MediaPresentationEvent |
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 |
MediaPresentationEvent
protected MediaPresentationEvent(javax.media.Controller from,
int previous,
int current,
int target)
- Constructor of MediaPresentationEvent
- See Also:
TransitionEvent
isSourceDigital
public boolean isSourceDigital()
- Returns:
- Returns true if the presented source is digital, false otherwise.
getSourceURL
public OcapLocator getSourceURL()
- Returns:
- Returns the URL of the source that is presented.
getPresentedStreams
public ElementaryStream[] getPresentedStreams()
- Returns:
- Returns the service components that are currently presented.
If no service components is presented or the source is analog, null is returned.
getTrigger
public MediaPresentationEvaluationTrigger getTrigger()
- Returns:
- Returns the trigger that leads to the generation of a
MediaPresentationEvent.
- See Also:
MediaPresentationEvaluationTrigger