Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-Android
Commits
736cb997
Commit
736cb997
authored
Jan 28, 2014
by
Rafaël Carré
Browse files
Use libvlc
parent
3c8541c3
Changes
4
Hide whitespace changes
Inline
Side-by-side
vlc-android/jni/libvlcjni-medialist.c
View file @
736cb997
...
...
@@ -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
);
...
...
vlc-android/jni/libvlcjni-track.c
View file @
736cb997
...
...
@@ -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
));
...
...
vlc-android/jni/libvlcjni.c
View file @
736cb997
...
...
@@ -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
...
...
vlc-android/jni/thumbnailer.c
View file @
736cb997
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment