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
1882 private boolean setDataSourceImpl(MediaPlayer player, String path) {
1961 MediaPlayer.OnCompletionListener listener = new MediaPlayer.OnCompletionListener() {
1962 public void onCompletion(MediaPlayer mp) {
1970 // this callback the MediaPlayer will release its wakelock
1981 MediaPlayer.OnErrorListener errorListener = new MediaPlayer.OnErrorListener() {
1982 public boolean onError(MediaPlayer mp, int what, int extra) {
1984 case MediaPlayer.MEDIA_ERROR_SERVER_DIED:
1987 // Creating a new MediaPlayer and settings its wakemode does not
2028 static class CompatMediaPlayer extends MediaPlayer implements OnCompletionListener {
2031 private MediaPlayer mNextPlayer;
2036 MediaPlayer.class.getMethod("setNextMediaPlayer", MediaPlayer.class);
2044 public void setNextMediaPlayer(MediaPlayer next) {
2062 public void onCompletion(MediaPlayer mp) {
2064 // as it turns out, starting a new MediaPlayer on the completion