|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.image.Image
org.llama.jmf.JMFVideoImage
public class JMFVideoImage
The Class JMFVideoImage.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme.image.Image |
---|
com.jme.image.Image.Format |
Field Summary | |
---|---|
static int |
SCALE_FIT
The Constant SCALE_FIT. |
static int |
SCALE_MAXIMIZE
The Constant SCALE_MAXIMIZE. |
static int |
SCALE_NONE
The Constant SCALE_NONE. |
Constructor Summary | |
---|---|
JMFVideoImage(java.lang.String filename,
boolean loop,
int scalemethod)
Instantiates a new JMF video image. |
|
JMFVideoImage(java.net.URL url,
boolean loop,
int scalemethod)
Instantiates a new JMF video image. |
Method Summary | |
---|---|
void |
controllerUpdate(javax.media.ControllerEvent evt)
|
void |
frame(java.nio.ByteBuffer buffer)
Frame. |
javax.media.Time |
getDuration()
Gets the duration. |
javax.media.Time |
getMediaTime()
Gets the media time. |
float |
getSoundVolumeLevel()
Gets the sound volume level. |
void |
getSpeed(float rate)
Gets the speed. |
int |
getVideoHeight()
Gets the video height. |
int |
getVideoWidth()
Gets the video width. |
boolean |
isFlipped()
Checks if is flipped. |
boolean |
isMute()
Checks if is mute. |
void |
restart()
Restart. |
void |
seek(javax.media.Time time)
Seek. |
void |
setMute(boolean isMute)
Sets the mute. |
void |
setSize(int videowidth,
int videoheight,
javax.media.format.RGBFormat format)
Sets the size. |
void |
setSoundVolumeLevel(float level)
Sets the sound volume level. |
void |
setSpeed(float rate)
Sets the speed. |
void |
setTime(javax.media.Time time)
Sets the time. |
void |
startMovie()
Start movie. |
void |
startsFrom(double seconds)
Starts from. |
void |
stopMovie()
Stop movie. |
boolean |
update(com.jme.image.Texture texture)
Update. |
boolean |
update(com.jme.image.Texture texture,
boolean syncToFrameRate)
Update. |
void |
waitSome(int time)
Wait some. |
Methods inherited from class com.jme.image.Image |
---|
addData, equals, getClassTag, getData, getData, getDepth, getEstimatedByteSize, getFormat, getHeight, getMipMapSizes, getWidth, hasMipmaps, read, setData, setData, setData, setDepth, setFormat, setHeight, setMipMapSizes, setWidth, write |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SCALE_FIT
public static final int SCALE_MAXIMIZE
public static final int SCALE_NONE
Constructor Detail |
---|
public JMFVideoImage(java.lang.String filename, boolean loop, int scalemethod) throws javax.media.NoPlayerException, javax.media.CannotRealizeException, java.net.MalformedURLException, java.io.IOException
filename
- the filenameloop
- the loopscalemethod
- the scalemethod
javax.media.NoPlayerException
- the no player exception
javax.media.CannotRealizeException
- the cannot realize exception
java.net.MalformedURLException
- the malformed url exception
java.io.IOException
- Signals that an I/O exception has occurred.public JMFVideoImage(java.net.URL url, boolean loop, int scalemethod) throws javax.media.NoPlayerException, javax.media.CannotRealizeException, java.io.IOException
url
- the urlloop
- the loopscalemethod
- the scalemethod
javax.media.NoPlayerException
- the no player exception
javax.media.CannotRealizeException
- the cannot realize exception
java.io.IOException
- Signals that an I/O exception has occurred.Method Detail |
---|
public void controllerUpdate(javax.media.ControllerEvent evt)
controllerUpdate
in interface javax.media.ControllerListener
public void frame(java.nio.ByteBuffer buffer)
ByteBufferRendererListener
frame
in interface ByteBufferRendererListener
buffer
- the bufferpublic javax.media.Time getDuration()
public javax.media.Time getMediaTime()
public float getSoundVolumeLevel()
public void getSpeed(float rate)
rate
- the ratepublic int getVideoHeight()
public int getVideoWidth()
public boolean isFlipped()
public boolean isMute()
public void restart()
public void seek(javax.media.Time time)
time
- the timepublic void setMute(boolean isMute)
isMute
- the new mutepublic void setSize(int videowidth, int videoheight, javax.media.format.RGBFormat format)
ByteBufferRendererListener
setSize
in interface ByteBufferRendererListener
videowidth
- the videowidthvideoheight
- the videoheightformat
- the formatpublic void setSoundVolumeLevel(float level)
level
- the new sound volume levelpublic void setSpeed(float rate)
rate
- the new speedpublic void setTime(javax.media.Time time)
time
- the new timepublic void startMovie()
public void startsFrom(double seconds)
seconds
- the secondspublic void stopMovie()
public boolean update(com.jme.image.Texture texture)
texture
- the texture
public boolean update(com.jme.image.Texture texture, boolean syncToFrameRate)
texture
- Texture to updatesyncToFrameRate
- Wait till the frame is updated before updating the texture.
public void waitSome(int time)
time
- the time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |