[Android] somebody please recompile android libvlc

Maria Gheorghe reclamamulta at gmail.com
Wed Oct 1 18:08:03 CEST 2014


I need 2 functions exposed from libvlc to java ,but I do not have a server
to recompile libvlc.If somebody can help would be great
Here are the fucntions that must be put in        jni/libvlcjni.c


//      ***LibVLC setSpuDelay***
//
//     Set the subtitle delay. This affects the timing of when the subtitle
will
//     be displayed. Positive values result in subtitles being displayed
later,
//     while negative values will result in subtitles being displayed
earlier.
//
//     The subtitle delay will be reset to zero each time the media changes.
//
//     param p_mi media player
//     param i_delay time (in microseconds) the display of subtitles should
be delayed
//    version LibVLC 1.2.0 or later


jint Java_org_videolan_vlc_LibVLC_
setSpuDelay(JNIEnv *env, jobject thiz, jint delay)
{
  libvlc_media_player_t *mp = getMediaPlayer(env, thiz);

  if (mp)
   return (jint) libvlc_video_set_spu_delay(mp, delay); //return 0 on
success, -1 on error

  return -1;
}


//     ***LibVLC getSpuDelay***
//
//    Get the current subtitle delay. Positive values means subtitles are
being
//     displayed later, negative values earlier.
//
//    param p_mi media player
//    return time (in microseconds) the display of subtitles is being
delayed
//    version LibVLC 1.2.0 or later
//

jint Java_org_videolan_vlc_LibVLC_getSpuDelay(JNIEnv *env, jobject thiz)
{
   libvlc_media_player_t *mp = getMediaPlayer(env, thiz);

   if (mp)
   return (jint) libvlc_video_get_spu_delay(mp);

   return -1;
}
--------------------------------------------------------------------------------------------------
If somebody can help me please
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20141001/98280d20/attachment.html>


More information about the Android mailing list