jaugment2.mediaplayer
Class JMFPlayer

java.lang.Object
  |
  +--jaugment2.mediaplayer.JMFPlayer

public class JMFPlayer
extends java.lang.Object
implements MediaPlayerService.PlayerIF

A player-module for the media-player-service using the JMF(tm)


Field Summary
protected  javax.media.Player plr
           
 
Constructor Summary
JMFPlayer()
           
 
Method Summary
 void pause()
           
 boolean play(java.net.URL media, MediaPlayerService.endOfSongListener l)
          try to play the URL given, if you cannot return false.
 void resume()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

plr

protected javax.media.Player plr
Constructor Detail

JMFPlayer

public JMFPlayer()
Method Detail

play

public boolean play(java.net.URL media,
                    MediaPlayerService.endOfSongListener l)
try to play the URL given, if you cannot return false.
Specified by:
play in interface MediaPlayerService.PlayerIF

stop

public void stop()
Specified by:
stop in interface MediaPlayerService.PlayerIF

pause

public void pause()
Specified by:
pause in interface MediaPlayerService.PlayerIF

resume

public void resume()
Specified by:
resume in interface MediaPlayerService.PlayerIF