|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.smil.viewer.awt.media.JMFMedia
This is the implementation of JMF media (audio/video...).
| Constructor Summary | |
JMFMedia()
|
|
| Method Summary | |
void |
addMediaListener(MediaListener listener)
Add a listener for this media. |
void |
close()
This will freeze all memory and references to this media. |
int |
getOriginalHeight()
Get the real height of the media. |
int |
getOriginalWidth()
Get the real width of the media. |
boolean |
isStatic()
Checks if this media is static or continuous. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Mouse listener... |
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
pause()
Pauses the media. |
void |
play()
Plays the media. |
void |
prefetch()
Prefetches media. |
void |
prefetched()
|
void |
run()
This media ends immediately, if the player was not found. |
void |
setBounds(int x,
int y,
int width,
int height)
Set the coordinates for the media. |
void |
setContainer(java.awt.Container container)
Sets the container the media will be rendered in. |
void |
setMediaTime(int millisecs)
This moves the time position in media. |
void |
setSoundVolume(int percentage)
Set the sound volume for media. |
void |
setUrl(java.net.URL url)
Sets the URL for this media. |
void |
stop()
Stops the media. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JMFMedia()
| Method Detail |
public boolean isStatic()
isStatic in interface Mediapublic void setUrl(java.net.URL url)
Media
setUrl in interface Mediaurl - URL for mediapublic void prefetch()
Media
prefetch in interface Mediapublic void setContainer(java.awt.Container container)
Media
setContainer in interface Mediacontainer - This container will contain the media.public void play()
MediaIf the media is not yet prefetched, it will first be prefetched.
play in interface Mediapublic void run()
run in interface java.lang.Runnablepublic void pause()
Media
pause in interface Mediapublic void stop()
Media
stop in interface Media
public void setBounds(int x,
int y,
int width,
int height)
Media
setBounds in interface Mediapublic void close()
Media
close in interface Mediapublic void prefetched()
public void setMediaTime(int millisecs)
setMediaTime in interface Mediamillisecs - Time in millisecspublic int getOriginalWidth()
getOriginalWidth in interface Mediapublic int getOriginalHeight()
getOriginalHeight in interface Mediapublic void setSoundVolume(int percentage)
setSoundVolume in interface Mediapercentage - Sound volume, 0-100- (0 is quiet, 100 is original loudness, 200 twice as loud;
dB change in signal level = 20 log10(percentage / 100) )public void addMediaListener(MediaListener listener)
addMediaListener in interface Mediapublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||