|
IBM Toolkit for MPEG-4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MPEG-4 Player Listener interface. An player shell can implement this to monitor ongoing state and update its user interface. It also allows allows a PlayerControl panel to control the player as well as being controlled via other direct calls, eg from a main player shell menus, such that each controller can maintain current/correct indications of state, volume etc. and cooperate.
Many methods here return values that can be queried via getXXX() methods on the PlayerControl and further information on the values may be had from the PlayerControl interface documentation.
Method Summary | |
void |
actualFPS(float fps)
An indication of the FPS from the renderer. |
void |
changedState(int state)
Indicates change of player presentation state. |
void |
fpsChanged(float fps)
The FPS setting has been altered. |
void |
handleAnchor(java.lang.String url)
Called to allow the shell to handle unknown anchor urls by for example exec'ing a known application to support the url. |
void |
muteChanged(boolean isMuted)
Indicates new mute state. |
void |
playerSize(int w,
int h)
Indicates current player size when there has been a change. |
void |
playerTime(long time)
Indicates current presentation time. |
void |
playRequestWhenClosed()
Indicates that a play request was received in closed state. |
void |
preferSize(int w,
int h)
Indicates the preferred size from presentation. |
void |
scalingChanged(boolean scaling)
The scaling mode has been changed. |
void |
serverNTPTimeOrigin(long msecs)
When the presentation is delivered from an RTSP/RTP streaming server part of the protocol which it may send includes an NTP timestamp (see Sender Report packet in RTP RFC 3550). |
void |
speedChanged(double speed)
The playback speed has been changed. |
void |
speedScalingChanged(boolean speedScaling)
The speed scaling type hint has been changed. |
void |
urlChanged(java.lang.String url)
A new URL has been opened. |
void |
usingMetrics(boolean usePixelMetrics)
Indicates pixel or meter metrics from presentation. |
void |
volumeChanged(double volume)
Indicates new volume level. |
Method Detail |
public void preferSize(int w, int h)
w
- Preferred widthh
- Preferred heightpublic void usingMetrics(boolean usePixelMetrics)
usePixelMetrics
- True if using pixel metrics, false is meter metricspublic void changedState(int state)
state
- State as per PlayerControlPlayerControl
public void playerTime(long time)
time
- Current time of presentation in mspublic void volumeChanged(double volume)
volume
- Volume in the range [0,1]public void muteChanged(boolean isMuted)
isMuted
- The mute statepublic void urlChanged(java.lang.String url)
This is the first indication of new content being opened. The preferred size and meter metrics indications will follow.
url
- String containing the URL for the contentpublic void speedChanged(double speed)
speed
- New speed valuepublic void scalingChanged(boolean scaling)
scaling
- New scaling valuepublic void speedScalingChanged(boolean speedScaling)
speedScaling
- New speed scaling valuepublic void fpsChanged(float fps)
fps
- FPS value setpublic void actualFPS(float fps)
fps
- The average fps of scenepublic void playerSize(int w, int h)
w
- widthh
- heightpublic void playRequestWhenClosed()
public void handleAnchor(java.lang.String url)
public void serverNTPTimeOrigin(long msecs)
msecs
- Milliseconds since Jan 1, 1970 corresponding to the start
the player's presentation timeline as given by the server.
|
IBM Toolkit for MPEG-4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |