|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.pxlab.pxl.DisplaySupport
de.pxlab.pxl.Display
de.pxlab.pxl.display.MediaPlayer
de.pxlab.pxl.display.MediaPlayerSync
public class MediaPlayerSync
Synchronize to the media time of a media data file played by the media player. Two types of synchronization are possible: (1) wait until a certain media time is reached and (2) wait until the end of the media data file has been found. In order to wait for the end of the media data stream the Timer parameter of this object must be set to END_OF_MEDIA_TIMER. If the synchronization object should wait until a certain media time has been reached its Timer must be set to SYNC_TO_MEDIA_TIMER and the parameter MediaTime has to be set to the respective media time. The media time is given in milliseconds relative to the start of the media stream. Thus in order to synchronize to the start of the 10th frame of a 25 Hz video stream MediaTime must be set to 9*40 = 360 ms.
| Field Summary | |
|---|---|
ExPar |
MediaTime
The media synchronization time in milliseconds. |
| Fields inherited from class de.pxlab.pxl.display.MediaPlayer |
|---|
Cycle, Directory, FastStart, FileName, Height, LocationX, LocationY, mpKey, ReferencePoint, staticMediaPlayer, Width |
| Fields inherited from class de.pxlab.pxl.DisplaySupport |
|---|
exParFields, group, instanceName, node, timingGroupLimit |
| Fields inherited from interface de.pxlab.pxl.ExParTypeCodes |
|---|
ANGLE, COLOR, COLOR_EDITOR, DEPCOLOR, DOUBLE, DURATION, editor, EXPARNAME, EXPFACTOR, FLAG, FONTNAME, GEOMETRY_EDITOR, HORSCREENPOS, HORSCREENSIZE, INT_8_BIT, INTEGER, KEYCODE, PROPORT, PROPORTION, RTDATA, SCREENPOS, SCREENSIZE, SIGNED_PROPORTION, SMALL_DOUBLE, SMALL_INT, SMALL_SCREENSIZE, SMALL_VISUAL_ANGLE, SPECTRUM, STRING, TIMING_EDITOR, UNKNOWN, VERSCREENPOS, VERSCREENSIZE, VISUAL_ANGLE |
| Constructor Summary | |
|---|---|
MediaPlayerSync()
|
|
| Method Summary | |
|---|---|
protected void |
computeGeometry()
A Display's computeGeometry() method is called whenever the size of the receiving display panel is initialized or has been changed, or a geometry parameter of the display has been adjusted. |
void |
show()
Draws all objects in the list of DisplayElements but the background. |
void |
show(java.awt.Graphics g)
Draws the background if it has been defined and then draws all objects in the list of DisplayElements. |
void |
showGroup()
Here is where the music plays. |
void |
showGroup(java.awt.Graphics g)
This method is not used for non-graphic display objects. |
protected void |
timingGroupFinished(int group)
This method is called when the display of the currently active timing group has been finished. |
| Methods inherited from class de.pxlab.pxl.display.MediaPlayer |
|---|
create, getCanPreload, isGraphic |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public ExPar MediaTime
| Constructor Detail |
|---|
public MediaPlayerSync()
| Method Detail |
|---|
protected void computeGeometry()
Display
computeGeometry in class MediaPlayerpublic void show(java.awt.Graphics g)
Display
show in class Displayg - a currently valid Graphics context for painting.public void show()
Display
show in class Displaypublic void showGroup()
showGroup in class Displaypublic void showGroup(java.awt.Graphics g)
showGroup in class Displayg - the Graphics context for painting.protected void timingGroupFinished(int group)
Display
timingGroupFinished in class Displaygroup - the index of the timing group which has been
run.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||