Commit 736cb997 authored by Rafaël Carré's avatar Rafaël Carré

Use libvlc

parent 3c8541c3
......@@ -100,6 +100,7 @@ void Java_org_videolan_libvlc_MediaList_loadPlaylist(JNIEnv *env, jobject thiz,
pthread_mutex_lock(&monitor->doneMutex);
libvlc_media_player_t* p_mp = libvlc_media_player_new((libvlc_instance_t*)(intptr_t)getLong(env, libvlcJava, "mLibVlcInstance"));
libvlc_media_player_set_video_title_display(p_mp, libvlc_position_disable, 0);
libvlc_event_manager_t* ev = libvlc_media_player_event_manager(p_mp);
libvlc_event_attach(ev, libvlc_MediaPlayerEndReached, stopped_callback, monitor);
libvlc_media_player_set_media(p_mp, p_md);
......
......@@ -59,6 +59,7 @@ jboolean Java_org_videolan_libvlc_LibVLC_hasVideoTrack(JNIEnv *env, jobject thiz
libvlc_media_parse(p_m);
libvlc_media_player_t* p_mp = libvlc_media_player_new_from_media(p_m);
libvlc_media_player_set_video_title_display(p_mp, libvlc_position_disable, 0);
struct length_change_monitor* monitor;
monitor = malloc(sizeof(struct length_change_monitor));
......
......@@ -262,7 +262,6 @@ void Java_org_videolan_libvlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz)
/* Don't add any invalid options, otherwise it causes LibVLC to crash */
const char *argv[] = {
"--no-osd",
"--no-video-title-show",
"--no-stats",
"--no-plugins-cache",
"--no-drop-late-frames",
......@@ -336,6 +335,7 @@ void Java_org_videolan_libvlc_LibVLC_playMRL(JNIEnv *env, jobject thiz, jlong in
/* Create a media player playing environment */
libvlc_media_player_t *mp = libvlc_media_player_new((libvlc_instance_t*)(intptr_t)instance);
libvlc_media_player_set_video_title_display(mp, libvlc_position_disable, 0);
jobject myJavaLibVLC = (*env)->NewGlobalRef(env, thiz);
//if AOUT_AUDIOTRACK_JAVA, we use amem
......
......@@ -155,6 +155,7 @@ jbyteArray Java_org_videolan_libvlc_LibVLC_getThumbnail(JNIEnv *env, jobject thi
/* Create a media player playing environment */
libvlc_media_player_t *mp = libvlc_media_player_new(libvlc);
libvlc_media_player_set_video_title_display(mp, libvlc_position_disable, 0);
libvlc_media_t *m = new_media(instance, env, thiz, filePath, true, false);
if (m == NULL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment