org.ocap.media
Class AlternativeMediaPresentationEvent
java.lang.Object
java.util.EventObject
javax.media.ControllerEvent
javax.media.TransitionEvent
org.ocap.media.MediaPresentationEvent
org.ocap.media.AlternativeMediaPresentationEvent
- All Implemented Interfaces:
- Serializable, MediaEvent, NotPresentedMediaInterface
public abstract class AlternativeMediaPresentationEvent
- extends MediaPresentationEvent
- implements NotPresentedMediaInterface
AlternativeMediaPresentationEvent is a JMF event generated
to indicate that an "alternative" content is presented during the media
presentation of a service.
Alternative content is defined as content that is not actually part of
the service.
AlternativeMediaPresentationEvent notification is generated :
When alternative media content presentation begins;
During the presentation of a service, if any of the service components
presented are replaced by alternative content;
During the presentation of a service, if an alternative media content was
presented and an evaluation leads to a new alternative media content
presentation.
- See Also:
- Serialized Form
AlternativeMediaPresentationEvent
protected AlternativeMediaPresentationEvent(Controller from,
int previous,
int current,
int target)
- Constructor of MediaPresentationEvent
- See Also:
MediaPresentationEvent
getNotPresentedStreams
public ElementaryStream[] getNotPresentedStreams()
- Specified by:
getNotPresentedStreams in interface NotPresentedMediaInterface
- Returns:
- Returns the subset of explicitly (by Application request) or
implicitly (by the Player itself) service components that were selected and which
presentation was not possible.
getReason
public int getReason(ElementaryStream es)
- Specified by:
getReason in interface NotPresentedMediaInterface
- Parameters:
es - a not presented service component.
- Returns:
- Returns a bit mask of reasons that lead to the non presentation of
the given service component. The reasons are defined
in
AlternativeMediaPresentationReason)interface.
Copyright © 2011. All Rights Reserved.