|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 LauncherisEditable in class DefaultLauncherpublic boolean isEnabled()
DefaultLauncher
isEnabled in interface LauncherisEnabled in class DefaultLauncher
public void enqueue(java.io.File file)
throws java.io.IOException
DefaultPlayerDefaultLauncher.getCommand(), passing file as an
argument.
enqueue in interface Playerenqueue in class DefaultPlayerjava.io.IOException
public void start()
throws java.io.IOException
start in interface Playerstart in class DefaultPlayerjava.io.IOExceptionpublic void stop()
DefaultPlayerdestory() on the player process, if running.
stop in interface Playerstop in class DefaultPlayer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||