Commit 4b7a28af authored by Thomas Guillem's avatar Thomas Guillem

native_sample: use a sample from the internet

parent f1090eb0
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <vlc/libvlc_media_player.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 static struct
{ {
...@@ -132,7 +132,7 @@ Java_org_videolan_nativesample_NativeActivity_nativeStart( ...@@ -132,7 +132,7 @@ Java_org_videolan_nativesample_NativeActivity_nativeStart(
p_ctx->jaWindow = (*p_env)->NewGlobalRef(p_env, jaWindow); p_ctx->jaWindow = (*p_env)->NewGlobalRef(p_env, jaWindow);
libvlc_media_player_set_android_context(p_ctx->p_mp, p_ctx->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 void
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.videolan.nativesample"> package="org.videolan.nativesample">
<uses-permission android:name="android.permission.INTERNET" />
<application <application
android:allowBackup="true" android:allowBackup="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
......
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