<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div><div style="font-family: Calibri,sans-serif; font-size: 11pt;">Hi,<br>I didn't understand by a per item. Could you elaborate.<br><br>Thanks,<br>Paulo</div></div><div dir="ltr"><hr><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">De: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:jb@videolan.org">Jean-Baptiste Kempf</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Enviada em: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">25/11/2014 08:39</span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Para: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:android@videolan.org">Development of VLC for Android</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Assunto: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">Re: [Android] [PATCH 2/3] Add option to enable RTSP TCP directlybypassing UDP.</span><br><br></div>No. This should be a per-item option, not a libVLC one.<br><br>On 24 Nov, Paulo Vitor Magacho da Silva wrote :<br>> ---<br>> libvlc/jni/libvlcjni.c | 6 ++++++<br>> libvlc/src/org/videolan/libvlc/LibVLC.java | 10 ++++++++++<br>> 2 files changed, 16 insertions(+)<br>> <br>> diff --git a/libvlc/jni/libvlcjni.c b/libvlc/jni/libvlcjni.c<br>> index 6b28667..7edd52f 100644<br>> --- a/libvlc/jni/libvlcjni.c<br>> +++ b/libvlc/jni/libvlcjni.c<br>> @@ -303,6 +303,9 @@ void Java_org_videolan_libvlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz)<br>> if (direct_rendering)<br>> vout = VOUT_ANDROID_WINDOW;<br>> <br>> + methodId = (*env)->GetMethodID(env, cls, "isRtspTcp", "()Z");<br>> + bool isRtspTcp = (*env)->CallBooleanMethod(env, thiz, methodId);<br>> +<br>> methodId = (*env)->GetMethodID(env, cls, "getCachePath", "()Ljava/lang/String;");<br>> jstring cachePath = (*env)->CallObjectMethod(env, thiz, methodId);<br>> if (cachePath) {<br>> @@ -328,6 +331,9 @@ void Java_org_videolan_libvlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz)<br>> /* Enable statistics */<br>> "--stats",<br>> <br>> + /* Enable RTSP tcp */<br>> + isRtspTcp ? "--rtsp-tcp" : "",<br>> +<br>> /* XXX: why can't the default be fine ? #7792 */<br>> (networkCaching > 0) ? networkCachingstr : "",<br>> <br>> diff --git a/libvlc/src/org/videolan/libvlc/LibVLC.java b/libvlc/src/org/videolan/libvlc/LibVLC.java<br>> index 5dffb47..8eb25ad 100644<br>> --- a/libvlc/src/org/videolan/libvlc/LibVLC.java<br>> +++ b/libvlc/src/org/videolan/libvlc/LibVLC.java<br>> @@ -102,6 +102,8 @@ public class LibVLC {<br>> /** Native crash handler */<br>> private OnNativeCrashListener mOnNativeCrashListener;<br>> <br>> + private boolean isRtspTcp = false;<br>> +<br>> /** Check in libVLC already initialized otherwise crash */<br>> private boolean mIsInitialized = false;<br>> public native void attachSurface(Surface surface, IVideoPlayer player);<br>> @@ -871,6 +873,14 @@ public class LibVLC {<br>> mOnNativeCrashListener.onNativeCrash();<br>> }<br>> <br>> + public boolean isRtspTcp() {<br>> + return isRtspTcp;<br>> + }<br>> +<br>> + public void setRtspTcp(boolean value) {<br>> + this.isRtspTcp = value;<br>> + }<br>> +<br>> public String getCachePath() {<br>> return mCachePath;<br>> }<br>> -- <br>> 1.9.3 (Apple Git-50)<br>> <br>> _______________________________________________<br>> Android mailing list<br>> Android@videolan.org<br>> https://mailman.videolan.org/listinfo/android<br><br>-- <br>With my kindest regards,<br><br>-- <br>Jean-Baptiste Kempf<br>http://www.jbkempf.com/ - +33 672 704 734<br>Sent from my Electronic Device<br>_______________________________________________<br>Android mailing list<br>Android@videolan.org<br>https://mailman.videolan.org/listinfo/android<br></body></html>