|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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.
Method Summary | |
---|---|
void |
controllerUpdate(javax.media.ControllerEvent event)
Callback from ControllerListener |
org.bluray.net.BDLocator |
createLocator(java.lang.String str)
Create a BD locator. |
org.davic.media.MediaLocator |
createMediaLocator(java.lang.String loc)
Create a MediaLocator, given a BD locator string |
void |
destroy()
Destroy the playback engine. |
static PlayerWrangler |
getInstance()
|
long |
getMediaTime()
Returns the current media time in ns, 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. |
javax.tv.media.AWTVideoSizeControl |
getSizeControl()
Returns an AWTVideoSizeControl that can be used to scale the video. |
void |
initialize(AnimationEngine engine)
Initialize the playback engine. |
void |
markReached(org.bluray.media.PlaybackMarkEvent event)
Callback from PlaybackListener |
void |
playItemReached(org.bluray.media.PlaybackPlayItemEvent event)
Callback from PlaybackListener |
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 void destroy()
public org.bluray.net.BDLocator createLocator(java.lang.String str)
public org.davic.media.MediaLocator createMediaLocator(java.lang.String loc)
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 javax.tv.media.AWTVideoSizeControl getSizeControl()
This method is only available on the Xlet version of this class, because AWTVideoSizeControl is a JavaTV API.
In the future, it might be intersting to integrate InterpolatedModel or some other way of declaratively controlling the display size with the Playlist API. Doing that is non-trivial, though, partly because of AWTVideoSizeControl.checkSize(). As of this writing, that has not been done, so scripting from Java is needed to adjust the video size.
public void markReached(org.bluray.media.PlaybackMarkEvent event)
markReached
in interface org.bluray.media.PlaybackListener
public void playItemReached(org.bluray.media.PlaybackPlayItemEvent event)
playItemReached
in interface org.bluray.media.PlaybackListener
public void controllerUpdate(javax.media.ControllerEvent event)
controllerUpdate
in interface javax.media.ControllerListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |