Lines Matching refs:MediaPlayer
40 import android.media.MediaPlayer;
41 import android.media.MediaPlayer.OnCompletionListener;
375 // release all MediaPlayer resources, including the native player and wakelocks
1884 private boolean setDataSourceImpl(MediaPlayer player, String path) {
1963 MediaPlayer.OnCompletionListener listener = new MediaPlayer.OnCompletionListener() {
1964 public void onCompletion(MediaPlayer mp) {
1972 // this callback the MediaPlayer will release its wakelock
1983 MediaPlayer.OnErrorListener errorListener = new MediaPlayer.OnErrorListener() {
1984 public boolean onError(MediaPlayer mp, int what, int extra) {
1986 case MediaPlayer.MEDIA_ERROR_SERVER_DIED:
1989 // Creating a new MediaPlayer and settings its wakemode does not
2030 static class CompatMediaPlayer extends MediaPlayer implements OnCompletionListener {
2033 private MediaPlayer mNextPlayer;
2038 MediaPlayer.class.getMethod("setNextMediaPlayer", MediaPlayer.class);
2046 public void setNextMediaPlayer(MediaPlayer next) {
2064 public void onCompletion(MediaPlayer mp) {
2066 // as it turns out, starting a new MediaPlayer on the completion