Lines Matching refs:MediaPlayer
23 import android.media.MediaPlayer;
46 * Handles playback of a single media item using MediaPlayer.
49 MediaPlayer.OnPreparedListener,
50 MediaPlayer.OnCompletionListener,
51 MediaPlayer.OnErrorListener,
52 MediaPlayer.OnSeekCompleteListener {
64 private MediaPlayer mMediaPlayer;
121 Log.e(TAG, "MediaPlayer throws IllegalStateException, uri=" + item.getUri());
123 Log.e(TAG, "MediaPlayer throws IOException, uri=" + item.getUri());
125 Log.e(TAG, "MediaPlayer throws IllegalArgumentException, uri=" + item.getUri());
127 Log.e(TAG, "MediaPlayer throws SecurityException, uri=" + item.getUri());
212 //MediaPlayer Listeners
214 public void onPrepared(MediaPlayer mp) {
243 public void onCompletion(MediaPlayer mp) {
258 public boolean onError(MediaPlayer mp, int what, int extra) {
275 public void onSeekComplete(MediaPlayer mp) {
291 protected MediaPlayer getMediaPlayer() { return mMediaPlayer; }
322 throw new UnsupportedOperationException("MediaPlayer does not support "
340 mMediaPlayer = new MediaPlayer();
366 public static final void setSurface(MediaPlayer player, Surface surface) {
372 * Handles playback of a single media item using MediaPlayer in SurfaceView
574 * Handles playback of a single media item using MediaPlayer in