|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MonitoringControl
A MonitoringControl allows application to get information associated with the
Streamed
CoD being presented to the user.
Additionally it allows application to control quality of
CoD by setting bitrate of downloaded CoD.
Method Summary | |
---|---|
void |
addMonitoringListener(MonitoringListener l)
Add a listener for MonitoringEvent. |
java.lang.String |
getAudioFormat()
Get the audio format of the associated CoD. |
StreamQualityInfo[] |
getAvailableStreamQualities()
Get all available qualities of streams in associated CoD. |
long |
getCurrentLineRate()
Get the current speed (in bits per second) with which the bits are sent onto the wire. |
StreamQualityInfo |
getStreamQuality()
Get the current quality of associated CoD. |
java.lang.String |
getVideoFormat()
Get the video format of associated CoD. |
void |
removeMonitoringListener(MonitoringListener l)
Remove a listener for MonitoringEvent. |
void |
setFixedStreamQuality(StreamQualityInfo streamQuality)
Set fixed quality of associated CoD. |
void |
setInitialStreamQuality(StreamQualityInfo streamQuality)
Set initial quality of associated CoD. |
Methods inherited from interface javax.media.Control |
---|
getControlComponent |
Method Detail |
---|
void addMonitoringListener(MonitoringListener l)
l
- the listener to addvoid removeMonitoringListener(MonitoringListener l)
l
- the listener to removeStreamQualityInfo[] getAvailableStreamQualities() throws java.lang.IllegalStateException
VideoStreamQualityInfo
s shall be
returned.
Precognitions:
Information is available after prefetching
java.lang.IllegalStateException
- if Player is neither in Prefetched nor Started stateStreamQualityInfo getStreamQuality() throws java.lang.IllegalStateException
VideoStreamQualityInfo
shall
be
returned.
Precognitions:
Information is available after prefetching
java.lang.IllegalStateException
- if Player is neither in Prefetched nor Started statevoid setInitialStreamQuality(StreamQualityInfo streamQuality) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
getAvailableStreamQualities()
method.
streamQuality
- the stream quality of CoD
java.lang.IllegalArgumentException
- thrown if CoD does not support given quality
java.lang.IllegalStateException
- if Player is not in the Prefetched statevoid setFixedStreamQuality(StreamQualityInfo streamQuality) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
getAvailableStreamQualities()
method.
streamQuality
- the stream quality of CoD
java.lang.IllegalArgumentException
- thrown if CoD does not support given quality
java.lang.IllegalStateException
- if Player is not in the Prefetched statelong getCurrentLineRate()
java.lang.String getVideoFormat() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- thrown if Player is neither in Prefetched nor Started statejava.lang.String getAudioFormat() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- thrown if Player is neither in Prefetched nor Started state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |