|
IBM Toolkit for MPEG-4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplayer.PlayerAdapter
MPEG-4 Player Adapter. A basic player listener class that can be extended so that any reqd events can be obtained by overridding the respective methods. E.g. a player control that had only start/stop/pause buttons would probably only be interested in state changes so that deriving from this class is convenient.
Constructor Summary | |
PlayerAdapter()
|
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 |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlayerAdapter()
Method Detail |
public void preferSize(int w, int h)
preferSize
in interface PlayerListener
w
- Preferred widthh
- Preferred heightpublic void usingMetrics(boolean usePixelMetrics)
usingMetrics
in interface PlayerListener
usePixelMetrics
- True if using pixel metrics, false is meter metricspublic void changedState(int state)
changedState
in interface PlayerListener
state
- State as per PlayerControlPlayerControl
public void playerTime(long time)
playerTime
in interface PlayerListener
time
- Current time of presentation in mspublic void volumeChanged(double volume)
volumeChanged
in interface PlayerListener
volume
- Volume in the range [0,1]public void muteChanged(boolean isMuted)
muteChanged
in interface PlayerListener
isMuted
- Mute statepublic void urlChanged(java.lang.String url)
urlChanged
in interface PlayerListener
url
- String containing the URL for the contentpublic void speedChanged(double speed)
speedChanged
in interface PlayerListener
speed
- New speed valuepublic void scalingChanged(boolean scaling)
scalingChanged
in interface PlayerListener
scaling
- New scaling valuepublic void speedScalingChanged(boolean speedScaling)
speedScalingChanged
in interface PlayerListener
speedScaling
- New speed scaling valuepublic void fpsChanged(float fps)
fpsChanged
in interface PlayerListener
fps
- FPS value setpublic void actualFPS(float fps)
actualFPS
in interface PlayerListener
fps
- The average fps of scenepublic void playerSize(int w, int h)
playerSize
in interface PlayerListener
w
- widthh
- heightpublic void playRequestWhenClosed()
playRequestWhenClosed
in interface PlayerListener
public void handleAnchor(java.lang.String url)
handleAnchor
in interface PlayerListener
|
IBM Toolkit for MPEG-4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |