org.dvb.media.monitoring
Class StreamQualityChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.dvb.media.monitoring.MonitoringEvent
          extended by org.dvb.media.monitoring.StreamQualityChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class StreamQualityChangeEvent
extends MonitoringEvent

Event is signalling that quality of the associated CoD has been changed.

This event shall occur when adaptive streaming changes played stream to another stream with a different video resolution and/or stream's bitrate because of changing network conditions.

See Also:
Serialized Form

Constructor Summary
StreamQualityChangeEvent(java.lang.Object source, StreamQualityInfo newStreamQuality)
          Construct the event.
 
Method Summary
 StreamQualityInfo getStreamQuality()
          Get the new quality of associated CoD.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamQualityChangeEvent

public StreamQualityChangeEvent(java.lang.Object source,
                                StreamQualityInfo newStreamQuality)
Construct the event.

Parameters:
source - the source of the event. The platform shall always pass in the JMF Player presenting the media whose property has been changed
newStreamQuality - the new value of quality of the stream
Method Detail

getStreamQuality

public StreamQualityInfo getStreamQuality()
Get the new quality of associated CoD.

Returns:
the new stream's quality