|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hdcookbook.grin.media.PlayerWrangler
public class PlayerWrangler
This is a singleton class that's used to control A/V playback on the primary JMF player. In the SE version, we don't control anything, so this is a stub version that provides enough for a show to link against for grinview, and run properly without presenting video.
Method Summary | |
---|---|
void |
destroy()
Destroy the playback engine. |
static PlayerWrangler |
getInstance()
|
long |
getMediaTime()
Returns the current media time, or -1 if no playlist has started. |
int |
getMediaTimeMS()
Returns the current media time in ms, or -1 if no playlist has started. |
float |
getRate()
Gets the rate of playback. |
void |
initialize(AnimationEngine engine)
Initialize the playback engine. |
void |
setMediaTime(long time)
Sets the current media time in ns. |
void |
setMediaTimeMS(int time)
Sets the current media time in ns. |
void |
setRate(float rate)
Sets the rate of playback, subject to the restrictions of the BD spec. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PlayerWrangler getInstance()
public void initialize(AnimationEngine engine)
public long getMediaTime()
public int getMediaTimeMS()
public void setMediaTime(long time)
public void setMediaTimeMS(int time)
public void setRate(float rate)
public float getRate()
public void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |