public class DSMCCStreamEvent extends DSMCCStream
DSMCCObject.addObjectChangeEventListener
on the DSMCCObject representing which describes this set of stream events.
The BIOP::StreamEvent message shall be read from the network once only, before the constructor
of this class returns. Hence methods which return information from that message shall not
be affected by any subsequent changes to that information.The subscribe method only verifies that the event name can be bound to an eventId but it does not require that the stream event descriptors for that event id can be received at that moment. While the event listener is registered the MHP terminal shall filter the stream event descriptors as specified in the "Monitoring broadcast timebases and events" clause in the main body of the specification.
NOTE: The NPT mechanism and scheduled stream events that depend on it are known to be vulnerable to disruption in many digital TV distribution networks. Existing deployed network equipment that re-generates the STC is unlikely to be aware of NPT and hence will not make the necessary corresponding modification to STC values inside NPT reference descriptors. Applications should only use NPT where they are confident that the network where they are to be used does not have this problem.
| Constructor and Description |
|---|
DSMCCStreamEvent(DSMCCObject aDSMCCObject)
Create a
DSMCCStreamEvent from a DSMCCObject. |
DSMCCStreamEvent(String path)
Create a DSMCCStreamEvent Object from its pathname.
|
DSMCCStreamEvent(String path,
String name)
Create a DSMCCStreamEvent from its pathname.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getEventList()
This function is used to get the list of the events of
the DSMCCStreamEvent object.
|
int |
subscribe(String eventName,
StreamEventListener l)
This function is used to subscribe to an event of a DSMCC
StreamEvent object.
|
void |
unsubscribe(int eventId,
StreamEventListener l)
This function is used to cancel the subscription to an event of a
DSMCCEvent object.
|
void |
unsubscribe(String eventName,
StreamEventListener l)
This function is used to cancel the subscription to an event of a
DSMCCEvent object.
|
addNPTListener, getDuration, getMediaTimeFromStream, getNPT, getNPTRate, getStreamLocator, isAudio, isData, isMPEGProgram, isVideo, removeNPTListenerpublic DSMCCStreamEvent(DSMCCObject aDSMCCObject) throws NotLoadedException, IllegalObjectTypeException
DSMCCStreamEvent from a DSMCCObject.
The Object has to be a DSMCC StreamEvent.aDSMCCObject - the DSMCC object which describes the stream.NotLoadedException - the DSMCCObject is not loaded.IllegalObjectTypeException - the DSMCCObject does not lead to a DSMCC StreamEvent.public DSMCCStreamEvent(String path) throws IOException, IllegalObjectTypeException
path - the pathname of the DSMCCStreamEvent objectIOException - An IO error has occurred.IllegalObjectTypeException - the path does not lead to a DSMCC StreamEvent.public DSMCCStreamEvent(String path, String name) throws IOException, IllegalObjectTypeException
path - the directory path.name - the name of the DSMCCStreamEvent Object.IOException - If an IO error occurred.IllegalObjectTypeException - the path does not lead to a DSMCC StreamEvent.public int subscribe(String eventName, StreamEventListener l) throws UnknownEventException, InsufficientResourcesException
eventName - the name of the event.l - an object that implements the StreamEventListener Interface.UnknownEventException - the event cannot be found at this timeInsufficientResourcesException - if resources needed to perform
the subscription are not availablepublic void unsubscribe(int eventId,
StreamEventListener l)
throws UnknownEventException
eventId - Identifier of the event.l - an object that implements the StreamEventListener Interface.UnknownEventException - The event can not be found.public void unsubscribe(String eventName, StreamEventListener l) throws UnknownEventException
eventName - the name of the event.l - an object that implements the StreamEventListener Interface.UnknownEventException - The event can not be found.public String[] getEventList()
Copyright © 2012 code4tv.com. All Rights Reserved.