Lines Matching refs:mp

90         MediaPlayer mp = new MediaPlayer();
92 mp.setDataSource(filePath);
93 mp.prepare();
97 int duration = mp.getDuration();
99 mp.release();
109 MediaPlayer mp = new MediaPlayer();
111 mp.setDataSource(filePath);
113 mp.prepare();
114 mp.start();
117 mp.pause();
123 currentPosition = mp.getCurrentPosition();
124 mp.stop();
125 mp.release();
126 Log.v(TAG, "mp currentPositon = " + currentPosition + " play duration = " + (t2-t1));
142 MediaPlayer mp = new MediaPlayer();
144 mp.setDataSource(filePath);
145 mp.prepare();
146 mp.start();
147 mp.seekTo(MediaNames.SEEK_TIME);
149 currentPosition = mp.getCurrentPosition();
153 mp.stop();
154 mp.release();
169 MediaPlayer mp = new MediaPlayer();
171 mp.setDataSource(filePath);
172 mp.prepare();
173 duration = mp.getDuration();
175 mp.setLooping(true);
176 mp.start();
178 mp.seekTo(duration - 5000);
185 //mp.pause();
186 currentPosition = mp.getCurrentPosition();
191 mp.stop();
192 mp.release();
207 MediaPlayer mp = new MediaPlayer();
208 mp.setDataSource(filePath);
209 mp.prepare();
210 int duration = mp.getDuration();
211 mp.start();
214 mp.pause();
217 misPlaying = mp.isPlaying();
218 int curPosition = mp.getCurrentPosition();
225 mp.stop();
226 mp.release();
232 MediaPlayer mp = new MediaPlayer();
233 mp.setDataSource(filePath);
234 mp.prepare();
235 mp.stop();
236 mp.release();
241 MediaPlayer mp = new MediaPlayer();
242 mp.setDataSource(filePath);
243 mp.prepare();
244 mp.pause();
245 mp.release();
250 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) {
335 MediaPlayer mp = new MediaPlayer();
336 mp.setDataSource(filePath);
337 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder());
338 mp.prepare();
339 mp.start();
341 mp.pause();
343 mp.seekTo(0);
344 mp.start();
346 currentPosition = mp.getCurrentPosition();
354 duration = mp.getDuration();
356 mp.pause();
358 mp.seekTo(duration - 20000 );
359 mp.start();
361 mp.pause();
363 mp.seekTo(duration/2);
364 mp.start();
366 currentPosition = mp.getCurrentPosition();
368 mp.release();
381 MediaPlayer mp = new MediaPlayer();
383 mp.setDataSource(filePath);
385 mp.prepare();
386 duration = mp.getDuration();
387 mp.seekTo(duration - 3000);
388 mp.start();
391 isPlaying = mp.isPlaying();
392 currentPosition = mp.getCurrentPosition();
394 mp.stop();
395 mp.release();
409 MediaPlayer mp = new MediaPlayer();
411 mp.setDataSource(filePath);
413 mp.prepare();
414 duration = mp.getDuration();
415 mp.start();
418 isPlaying = mp.isPlaying();
419 currentPosition = mp.getCurrentPosition();
421 mp.stop();
422 mp.release();
437 MediaPlayer mp = new MediaPlayer();
440 mp.setDataSource(filePath);
442 mp.prepare();
443 //duration = mp.getDuration();
444 mp.start();
447 isPlaying = mp.isPlaying();
448 currentPosition = mp.getCurrentPosition();
449 //updateDuration = mp.getDuration();
451 mp.stop();
452 mp.release();
467 MediaPlayer mp = new MediaPlayer();
469 mp.setDataSource(filePath);
470 mp.prepare();
471 duration = mp.getDuration();
472 mp.seekTo(duration - 10000);
473 mp.start();
474 currentPosition=mp.getCurrentPosition();
475 mp.stop();
476 mp.release();
505 MediaPlayer mp = new MediaPlayer();
507 mp.setDataSource(filePath);
508 mp.prepare();
509 duration = mp.getDuration();
511 mp.release();
573 MediaPlayer mp = new MediaPlayer();
574 mp.setDataSource(afd.getFileDescriptor(),afd.getStartOffset(), afd.getLength());
575 mp.prepare();
576 mp.start();
577 duration = mp.getDuration();
579 mp.release();
592 MediaPlayer mp = new MediaPlayer();
593 mp.setDataSource(filePath);
594 mp.prepareAsync();
595 mp.reset();
596 mp.release();
606 MediaPlayer mp = null;
609 mp = new MediaPlayer();
610 if (mp.isLooping()) {
614 mp.setDataSource(filePath);
615 mp.prepare();
617 mp.setLooping(true);
618 if (!mp.isLooping()) {
623 mp.setLooping(false);
624 if (mp.isLooping()) {
632 if (mp != null)
633 mp.release();
640 MediaPlayer mp = null;
642 mp = new MediaPlayer();
643 mp.setDataSource(filePath);
644 mp.prepare();
646 mp.setLooping(true);
647 mp.reset();
648 if (mp.isLooping()) {
656 if (mp != null)
657 mp.release();
698 public void onPrepared(MediaPlayer mp) {
747 public void onCompletion(MediaPlayer mp) {
757 public boolean onError(MediaPlayer mp, int framework_err, int impl_err) {
759 mp.reset();
765 public boolean onInfo(MediaPlayer mp, int what, int extra) {