Home | History | Annotate | Download | only in jni

Lines Matching refs:mp

161             sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
162 if (mp != 0) mp->notify(MEDIA_ERROR, opStatus, 0);
188 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
189 if (mp == NULL ) {
217 mp->setDataSource(
229 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
230 if (mp == NULL ) {
241 process_media_player_call( env, thiz, mp->setDataSource(fd, offset, length), "java/io/IOException", "setDataSourceFD failed." );
253 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
254 if (mp == NULL) {
267 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
268 if (mp == NULL) {
301 mp->setVideoSurfaceTexture(new_st);
313 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
314 if (mp == NULL ) {
319 // Handle the case where the display surface was set before the mp was
322 mp->setVideoSurfaceTexture(st);
324 process_media_player_call( env, thiz, mp->prepare(), "java/io/IOException", "Prepare failed." );
330 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
331 if (mp == NULL ) {
336 // Handle the case where the display surface was set before the mp was
339 mp->setVideoSurfaceTexture(st);
341 process_media_player_call( env, thiz, mp->prepareAsync(), "java/io/IOException", "Prepare Async failed." );
348 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
349 if (mp == NULL ) {
353 process_media_player_call( env, thiz, mp->start(), NULL, NULL );
360 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
361 if (mp == NULL ) {
365 process_media_player_call( env, thiz, mp->stop(), NULL, NULL );
372 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
373 if (mp == NULL ) {
377 process_media_player_call( env, thiz, mp->pause(), NULL, NULL );
383 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
384 if (mp == NULL ) {
388 const jboolean is_playing = mp->isPlaying();
397 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
398 if (mp == NULL ) {
403 process_media_player_call( env, thiz, mp->seekTo(msec), NULL, NULL );
409 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
410 if (mp == NULL ) {
415 if (0 != mp->getVideoWidth(&w)) {
426 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
427 if (mp == NULL ) {
432 if (0 != mp->getVideoHeight(&h)) {
444 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
445 if (mp == NULL ) {
450 process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL );
458 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
459 if (mp == NULL ) {
464 process_media_player_call( env, thiz, mp->getDuration(&msec), NULL, NULL );
473 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
474 if (mp == NULL ) {
478 process_media_player_call( env, thiz, mp->reset(), NULL, NULL );
485 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
486 if (mp == NULL ) {
490 process_media_player_call( env, thiz, mp->setAudioStreamType((audio_stream_type_t) streamtype) , NULL, NULL );
497 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
498 if (mp == NULL ) {
502 process_media_player_call( env, thiz, mp->setLooping(looping), NULL, NULL );
509 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
510 if (mp == NULL ) {
514 return mp->isLooping();
521 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
522 if (mp == NULL ) {
526 process_media_player_call( env, thiz, mp->setVolume(leftVolume, rightVolume), NULL, NULL );
642 sp<MediaPlayer> mp = new MediaPlayer();
643 if (mp == NULL) {
650 mp->setListener(listener);
653 setMediaPlayer(env, thiz, mp);
661 sp<MediaPlayer> mp = setMediaPlayer(env, thiz, 0);
662 if (mp != NULL) {
664 mp->setListener(0);
665 mp->disconnect();
673 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
674 if (mp != NULL) {
682 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
683 if (mp == NULL ) {
687 process_media_player_call( env, thiz, mp->setAudioSessionId(sessionId), NULL, NULL );
692 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
693 if (mp == NULL ) {
698 return mp->getAudioSessionId();
705 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
706 if (mp == NULL ) {
710 process_media_player_call( env, thiz, mp->setAuxEffectSendLevel(level), NULL, NULL );
715 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
716 if (mp == NULL ) {
720 process_media_player_call( env, thiz, mp->attachAuxEffect(effectId), NULL, NULL );
741 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
742 if (mp == NULL ) {
762 ret = mp->setRetransmitEndpoint(cAddrString,