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

Lines Matching full:media

22 import android.media.AudioManager;
23 import android.media.MediaMetadata;
24 import android.media.MediaPlayer;
25 import android.media.session.PlaybackState;
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;
40 import static android.media.session.MediaSession.QueueItem;
43 * A class that implements local media playback using {@link android.media.MediaPlayer}
50 // The volume we set the media player to when we lose audio focus, but are
53 // The volume we set the media player when we have audio focus.
174 // Starts preparing the media player in the background. When
177 // listener to 'this'). Until the media player is prepared,
201 // Pause media player and cancel the 'foreground service' state.
221 // If we do not have a current media player, simply update the current position
312 * Implementation of {@link android.media.AudioManager.OnAudioFocusChangeListener}
329 // If we are playing, we need to reset media player by calling configMediaPlayerState
345 * @see android.media.MediaPlayer.OnSeekCompleteListener
361 * Called when media player is done playing current song.
363 * @see android.media.MediaPlayer.OnCompletionListener
368 // The media player finished playing the current song, so we go ahead
376 * Called when media player is done preparing.
378 * @see android.media.MediaPlayer.OnPreparedListener
383 // The media player is done preparing. That means we can start playing if we
389 * Called when there's an error playing media. When this happens, the media
391 * reset the media player.
393 * @see android.media.MediaPlayer.OnErrorListener
397 LogHelper.e(TAG, "Media player error: what=" + what + ", extra=" + extra);
405 * Makes sure the media player exists and has been reset. This will create
406 * the media player if needed, or reset the existing media player if one
414 // Make sure the media player will acquire a wake-lock while
420 // we want the media player to notify us when it's ready preparing,
435 * @param releaseMediaPlayer Indicates whether the Media Player should also
443 // stop and release the Media Player, if it's available
478 * playback state on the media sessions.