|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.util.launcher.DefaultLauncher org.xnap.util.launcher.DefaultPlayer org.xnap.util.launcher.JMFPlayer
public class JMFPlayer
JMF 2.1-based MP3 audio player. Note that this class uses nothing but reflection to run the JMF code so that this class can be loaded without dependencies on the JMF jar being installed on the user's system.
Constructor Summary | |
---|---|
JMFPlayer()
|
Method Summary | |
---|---|
void |
enqueue(java.io.File file)
Executes DefaultLauncher.getCommand() , passing file as an
argument. |
boolean |
isEditable()
Returns true. |
boolean |
isEnabled()
Returns true. |
void |
start()
Does nothing. |
void |
stop()
Calls destory() on the player process, if running. |
Methods inherited from class org.xnap.util.launcher.DefaultPlayer |
---|
canPlay, open, open |
Methods inherited from class org.xnap.util.launcher.DefaultLauncher |
---|
getCommand, getKey, getName, setCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xnap.util.launcher.Launcher |
---|
getCommand, getKey, getName, setCommand |
Constructor Detail |
---|
public JMFPlayer()
Method Detail |
---|
public boolean isEditable()
DefaultLauncher
isEditable
in interface Launcher
isEditable
in class DefaultLauncher
public boolean isEnabled()
DefaultLauncher
isEnabled
in interface Launcher
isEnabled
in class DefaultLauncher
public void enqueue(java.io.File file) throws java.io.IOException
DefaultPlayer
DefaultLauncher.getCommand()
, passing file
as an
argument.
enqueue
in interface Player
enqueue
in class DefaultPlayer
java.io.IOException
public void start() throws java.io.IOException
start
in interface Player
start
in class DefaultPlayer
java.io.IOException
public void stop()
DefaultPlayer
destory()
on the player process, if running.
stop
in interface Player
stop
in class DefaultPlayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |