static int com_media_ffmpeg_FFMpegPlayer_getCurrentPosition(JNIEnv *env, jobject thiz) { MediaPlayer* mp = getMediaPlayer(env, thiz); if (mp == NULL ) { jniThrowException(env, "java/lang/IllegalStateException", NULL); return 0; } int msec; process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL ); return msec; }
static int wseemann_media_FFmpegMediaPlayer_getCurrentPosition(JNIEnv *env, jobject thiz) { MediaPlayer* mp = getMediaPlayer(env, thiz); if (mp == NULL ) { jniThrowException(env, "java/lang/IllegalStateException", NULL); return 0; } int msec; process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL ); __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, "getCurrentPosition: %d (msec)", msec); return msec; }