Lines Matching refs:media

28 import android.media.AudioManager;
29 import android.media.MediaMetadataRetriever;
30 import android.media.MediaPlayer;
31 import android.media.MediaPlayer.OnCompletionListener;
32 import android.media.MediaPlayer.OnErrorListener;
33 import android.media.MediaPlayer.OnPreparedListener;
34 import android.media.RemoteControlClient;
46 * Service that handles media playback. This is the Service through which we perform all the media
48 * the user's media. Then, it waits for Intents (which come from our main activity,
72 // The volume we set the media player to when we lose audio focus, but are allowed to reduce
76 // our media player
86 Stopped, // media player is stopped and not prepared to play
87 Preparing, // media player is preparing...
88 Playing, // playback active (media player ready!). (but the media player may actually be
91 Paused // playback paused (media player ready!)
135 // Our instance of our MusicRetriever, which handles scanning for media and
146 // The component name of MusicIntentReceiver, for use with media button and remote control
156 * Makes sure the media player exists and has been reset. This will create the media player
157 * if needed, or reset the existing media player if one already exists.
163 // Make sure the media player will acquire a wake-lock while playing. If we don't do
170 // we want the media player to notify us when it's ready preparing, and when it's done
236 // If we are still retrieving media, just set the flag to start playing when we're
267 // If we are still retrieving media, clear the flag that indicates we should start
274 // Pause media player and cancel the 'foreground service' state.
409 // set the source of the media player to a manual URL or path
430 // set the source of the media player a a content URI
441 // Use the media button APIs (if available) to register ourselves for media button
481 // starts preparing the media player in the background. When it's done, it will call
485 // Until the media player is prepared, we *cannot* call start() on it!
500 /** Called when media player is done playing current song. */
502 // The media player finished playing the current song, so we go ahead and start the next.
506 /** Called when media player is done preparing. */
508 // The media player is done preparing. That means we can start playing!
542 * Called when there's an error playing media. When this happens, the media player goes to
543 * the Error state. We warn the user about the error and reset the media player.
560 // restart media player with new focus settings
570 // start/restart/pause media player with new focus settings