KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > microedition > media > Player

javax.microedition.media
Interface Player

All Superinterfaces:
Controllable

public void addPlayerListener(PlayerListener playerListener)
See Also:
removePlayerListener(javax.microedition.media.PlayerListener), IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void close()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int CLOSED
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void deallocate()
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getContentType()
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long getDuration()
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long getMediaTime()
See Also:
setMediaTime(long), IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getState()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public TimeBase getTimeBase()
See Also:
setTimeBase(javax.microedition.media.TimeBase)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void prefetch()
              throws MediaException
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1743]prefetch while phonecall
By antonp { at } reaxion { dot } com on 2006/04/10 10:12:26  Rate
Have an issue on Nokia S40_DP20_SDK_1_1. 
  
  
 Make suspend with incoming call, select laudspeaker and return to your midlet. Try to prefetch sound - you will have documented exception: 
   javax.microedition.media.MediaException: error opening MIDI/tone device 
  
  
 But the emulator stopped for about 20 secs  ( in prefetch ) .    
 I cannot foresee this situation. Can you? 
 


public static final int PREFETCHED
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void realize()
             throws MediaException
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int REALIZED
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removePlayerListener(PlayerListener playerListener)
See Also:
addPlayerListener(javax.microedition.media.PlayerListener), IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLoopCount(int count)
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long setMediaTime(long now)
                  throws MediaException
See Also:
getMediaTime(), IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setTimeBase(TimeBase master)
                 throws MediaException
See Also:
getTimeBase()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void start()
           throws MediaException
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int STARTED
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void stop()
          throws MediaException
See Also:
IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final long TIME_UNKNOWN
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int UNREALIZED
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags