Home | History | Annotate | Download | only in com.example.android.mediabrowserservice

Lines Matching refs:MediaPlayer

24 import android.media.MediaPlayer;
36 import static android.media.MediaPlayer.OnCompletionListener;
37 import static android.media.MediaPlayer.OnErrorListener;
38 import static android.media.MediaPlayer.OnPreparedListener;
39 import static android.media.MediaPlayer.OnSeekCompleteListener;
43 * A class that implements local media playback using {@link android.media.MediaPlayer}
76 private MediaPlayer mMediaPlayer;
160 relaxResources(false); // release everything except MediaPlayer
206 // while paused, retain the MediaPlayer but give up audio focus
265 * Reconfigures MediaPlayer according to audio focus settings and
266 * starts/restarts it. This method starts/restarts the MediaPlayer
269 * MediaPlayer paused or set it to a low volume, depending on what is
343 * Called when MediaPlayer has completed a seek
345 * @see android.media.MediaPlayer.OnSeekCompleteListener
348 public void onSeekComplete(MediaPlayer mp) {
349 LogHelper.d(TAG, "onSeekComplete from MediaPlayer:", mp.getCurrentPosition());
363 * @see android.media.MediaPlayer.OnCompletionListener
366 public void onCompletion(MediaPlayer player) {
367 LogHelper.d(TAG, "onCompletion from MediaPlayer");
378 * @see android.media.MediaPlayer.OnPreparedListener
381 public void onPrepared(MediaPlayer player) {
382 LogHelper.d(TAG, "onPrepared from MediaPlayer");
393 * @see android.media.MediaPlayer.OnErrorListener
396 public boolean onError(MediaPlayer mp, int what, int extra) {
399 mCallback.onError("MediaPlayer error " + what + " (" + extra + ")");
412 mMediaPlayer = new MediaPlayer();
433 * "foreground service" status, the wake locks and possibly the MediaPlayer.