Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
LibVLC Android samples
Commits
4b7a28af
Commit
4b7a28af
authored
Sep 19, 2016
by
Thomas Guillem
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
native_sample: use a sample from the internet
parent
f1090eb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
native_sample/jni/main.c
native_sample/jni/main.c
+2
-2
native_sample/src/main/AndroidManifest.xml
native_sample/src/main/AndroidManifest.xml
+2
-0
No files found.
native_sample/jni/main.c
View file @
4b7a28af
...
...
@@ -14,7 +14,7 @@
#include <vlc/vlc.h>
#include <vlc/libvlc_media_player.h>
#define SAMPLE_
TEST "/sdcard/Movies/sample.mp4
"
#define SAMPLE_
URL "http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_640x360.m4v
"
static
struct
{
...
...
@@ -132,7 +132,7 @@ Java_org_videolan_nativesample_NativeActivity_nativeStart(
p_ctx
->
jaWindow
=
(
*
p_env
)
->
NewGlobalRef
(
p_env
,
jaWindow
);
libvlc_media_player_set_android_context
(
p_ctx
->
p_mp
,
p_ctx
->
jaWindow
);
return
PlayUrl
(
p_ctx
,
SAMPLE_
TEST
);
return
PlayUrl
(
p_ctx
,
SAMPLE_
URL
);
}
void
...
...
native_sample/src/main/AndroidManifest.xml
View file @
4b7a28af
...
...
@@ -2,6 +2,8 @@
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.videolan.nativesample"
>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<application
android:allowBackup=
"true"
android:icon=
"@mipmap/ic_launcher"
...
...
Alpha Centari
@williamkeil33
·
Sep 19, 2016
0e18b73b6e4d02a6ab4d7ea8a10ca96e4af193bd
0e18b73b6e4d02a6ab4d7ea8a10ca96e4af193bd
Write
Preview
Markdown
is supported
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