jaugment2.mediaplayer
Interface MediaPlayerIF

All Known Implementing Classes:
MediaPlayerProxy

public interface MediaPlayerIF
extends java.rmi.Remote, net.jini.admin.Administrable

Interface for media-players


Inner Class Summary
static class MediaPlayerIF.MediaPlayerServiceEvent
          Class for events thrown here
 
Method Summary
 void addToPlaylist(java.net.URL data, int pos)
          Add the given URL to the playlist at the given position
 void freePlaylist()
          remove all ele,ments from the playlist
 java.lang.Object getAdmin()
          Returns an object that implements our administration-interfaces.
 int getCurrentPlaylistIndex()
           
 java.net.URL[] getPlaylist()
          return a copy of the playlist
 void pause()
           
 void play()
          Play the first Element from the playlist
 void play(int pos)
          Play the given Element from the playlist
 void stop()
           
 

Method Detail

getCurrentPlaylistIndex

public int getCurrentPlaylistIndex()
                            throws java.rmi.RemoteException,
                                   java.lang.IllegalArgumentException,
                                   java.lang.IllegalStateException

pause

public void pause()
           throws java.rmi.RemoteException,
                  java.lang.IllegalArgumentException,
                  java.lang.IllegalStateException

stop

public void stop()
          throws java.rmi.RemoteException,
                 java.lang.IllegalArgumentException,
                 java.lang.IllegalStateException

addToPlaylist

public void addToPlaylist(java.net.URL data,
                          int pos)
                   throws java.rmi.RemoteException,
                          java.lang.IllegalArgumentException,
                          java.lang.IllegalStateException
Add the given URL to the playlist at the given position

play

public void play()
          throws java.rmi.RemoteException,
                 java.lang.IllegalArgumentException,
                 java.lang.IllegalStateException
Play the first Element from the playlist

play

public void play(int pos)
          throws java.rmi.RemoteException,
                 java.lang.IllegalArgumentException,
                 java.lang.IllegalStateException
Play the given Element from the playlist

getAdmin

public java.lang.Object getAdmin()
                          throws java.rmi.RemoteException
Returns an object that implements our administration-interfaces.
Specified by:
getAdmin in interface net.jini.admin.Administrable
Throws:
java.rmi.RemoteException -  
See Also:
JoinAdmin

getPlaylist

public java.net.URL[] getPlaylist()
                           throws java.rmi.RemoteException
return a copy of the playlist

freePlaylist

public void freePlaylist()
                  throws java.rmi.RemoteException
remove all ele,ments from the playlist