jaugment2.mediaplayer
Class CmdlnPlayer

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

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

A player-module for the media-player-service using a command-line-program


Inner Class Summary
private  class CmdlnPlayer.myThread
           
 
Field Summary
protected  java.lang.String[] cmd
           
private  boolean noNotify
           
(package private)  java.lang.Process plr
           
private  CmdlnPlayer.myThread t
           
private  java.io.BufferedInputStream t1
           
private  java.io.BufferedInputStream t2
           
private  java.io.BufferedOutputStream t3
           
 
Constructor Summary
CmdlnPlayer()
           
 
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

java.lang.Process plr

cmd

protected java.lang.String[] cmd

t1

private java.io.BufferedInputStream t1

t2

private java.io.BufferedInputStream t2

t3

private java.io.BufferedOutputStream t3

noNotify

private boolean noNotify

t

private CmdlnPlayer.myThread t
Constructor Detail

CmdlnPlayer

public CmdlnPlayer()
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