Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29ad7b9f authored by Surajit Podder's avatar Surajit Podder Committed by Linux Build Service Account
Browse files

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
parent 56d08b54
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -149,6 +149,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;