In jnilibvlcjni-mediaplayer.c I added the following code:
Code: Select all
void
Java_org_videolan_libvlc_MediaPlayer_nativeSetTeleText(JNIEnv *env,
jobject thiz, jint page)
{
vlcjni_object *p_obj = VLCJniObject_getInstance(env, thiz);
if (!p_obj)
return;
libvlc_video_set_teletext(p_obj->u.p_mp, page);
}
void
Java_org_videolan_libvlc_MediaPlayer_nativeToggleTeleText(JNIEnv *env,
jobject thiz)
{
vlcjni_object *p_obj = VLCJniObject_getInstance(env, thiz);
if (!p_obj)
return;
libvlc_toggle_teletext(p_obj->u.p_mp);
}
Code: Select all
private native void nativeSetTeleText(int page);
private native void nativeToggleTeleText();
public void setTeleText(int page) {nativeSetTeleText(page);}
public void toggleTeleText();