diff options
author | Surajit Podder <spodder@codeaurora.org> | 2013-04-16 14:44:27 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:24:50 -0600 |
commit | eea5a54a1f478594b9086abeabd5f7fc1b4cca61 (patch) | |
tree | 083b514f3a4b54df8e6fa9ffcf99b3f57bbf5a69 /media/libstagefright/rtsp/MyHandler.h | |
parent | 20d6a979e133613cffbf2b34f50d2a7876bf33f3 (diff) | |
download | frameworks_av-eea5a54a1f478594b9086abeabd5f7fc1b4cca61.zip frameworks_av-eea5a54a1f478594b9086abeabd5f7fc1b4cca61.tar.gz frameworks_av-eea5a54a1f478594b9086abeabd5f7fc1b4cca61.tar.bz2 |
rtsp: Add a property "rtsp.transport.TCP"
- Add property "rtsp.transport.TCP"
Value "true" - TCP
Value "false" - UDP
default value - false
- This property can be used to test rtsp
streaming over TCP directly for network
compatibility testing
Change-Id: Ic27b440067af49e7e3bcc45d86eb7a17ae9db54f
CRs-Fixed: 435538
Diffstat (limited to 'media/libstagefright/rtsp/MyHandler.h')
-rw-r--r-- | media/libstagefright/rtsp/MyHandler.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/media/libstagefright/rtsp/MyHandler.h b/media/libstagefright/rtsp/MyHandler.h index 8cf5f7c..e105b15 100644 --- a/media/libstagefright/rtsp/MyHandler.h +++ b/media/libstagefright/rtsp/MyHandler.h @@ -32,6 +32,7 @@ #include "ASessionDescription.h" #include <ctype.h> +#include <cutils/properties.h> #include <media/stagefright/foundation/ABuffer.h> #include <media/stagefright/foundation/ADebug.h> @@ -147,6 +148,14 @@ struct MyHandler : public AHandler { false /* canCallJava */, PRIORITY_HIGHEST); + char value[PROPERTY_VALUE_MAX] = {0}; + property_get("rtsp.transport.TCP", value, "false"); + if (!strcasecmp(value, "true")) { + mTryTCPInterleaving = true; + } else { + mTryTCPInterleaving = false; + } + // Strip any authentication info from the session url, we don't // want to transmit user/pass in cleartext. AString host, path, user, pass; |