[vlc-devel] Please add android vlc subtitle delay

Maria Gheorghe reclamamulta at gmail.com
Thu Oct 2 23:32:23 CEST 2014


I do not know exactly where to send this mail but if somebody who know who
take care about the libvlc for android ,maybe inform him about this request.
Thank you very much
The request is to  add this functions to the libvlcjni.c to expose the
functions that take care of the subtitle delay.
These are not exposed yet and any android tv box with a subtitle needs this.

//      ***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.

//     ***LibVLC getSpuDelay***
//
//    Get the current subtitle delay. Positive values means subtitles are
being
//     displayed later, negative values earlier.


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;
}


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;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141003/acae58b7/attachment.html>


More information about the vlc-devel mailing list