package javax.microedition.media;

public interface Player extends Controllable
{
 public int UNREALIZED = 100;
 public int REALIZED = 200;
 public int PREFETCHED = 300;
 public int STARTED = 400;
 public int CLOSED = 0;
 public long TIME_UNKNOWN = -1;

 public void realize() throws MediaException;
 
 public void prefetch() throws MediaException;
 
 public void start() throws MediaException;
 
 public void stop() throws MediaException;
 
 public void deallocate();
 
 public void close();
 
 public void setTimeBase(TimeBase) throws MediaException;
 
 public TimeBase getTimeBase();
 
 public long setMediaTime(long) throws MediaException;
 
 public long getMediaTime();
 
 public int getState();
 
 public long getDuration();
 
 public String getContentType();
 
 public void setLoopCount(int);
 
 public void addPlayerListener(PlayerListener);
 
 public void removePlayerListener(PlayerListener);
 
}