[Android] [PATCH 15/24] lua: pick a more reasonable default resolution
Edward Wang
edward.c.wang at compdigitec.com
Wed Aug 22 23:15:15 CEST 2012
---
vlc-android/jni/libvlcjni.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/vlc-android/jni/libvlcjni.c b/vlc-android/jni/libvlcjni.c
index 1c83006..b6315f6 100644
--- a/vlc-android/jni/libvlcjni.c
+++ b/vlc-android/jni/libvlcjni.c
@@ -420,6 +420,13 @@ void Java_org_videolan_vlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz, jboolean
"--avcodec-fast",
"--playlist-tree", /* This is needed for the media list handling,
it doesn't work well otherwise. */
+ /* Mobile data networks are often weaker and slower than regular
+ * desktop connections. Downloading the default "preferred"
+ * 1080p on a user's mobile is probably not the best choice.
+ * (Even YouTube defaults to 360p and not 1080p by default.
+ * Furthermore, the screen is often small enough anyway to
+ * prevent a loss of visible major video quality. */
+ "--preferred-resolution", "360",
enable_time_stretch ? "--audio-time-stretch" : "--no-audio-time-stretch",
use_opensles ? "--aout=opensles" : "--aout=android_audiotrack",
};
--
1.7.5.4
More information about the Android
mailing list