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

Commit ba12641f authored by Surajit Podder's avatar Surajit Podder Committed by Steve Kondik
Browse files

rtsp: Add a property "rtsp.transport.TCP"

- Add property "rtsp.transport.TCP"
  Value "true" - TCP
  Value "false" - UDP
  default value - false

Change-Id: Ic27b440067af49e7e3bcc45d86eb7a17ae9db54f
CRs-Fixed: 435538
parent b8c58116
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@
#include "ASessionDescription.h"

#include <ctype.h>
#include <cutils/properties.h>

#include <media/stagefright/foundation/ABuffer.h>
#include <media/stagefright/foundation/ADebug.h>
@@ -134,6 +135,14 @@ struct MyHandler : public AHandler {
                          false /* canCallJava */,
                          PRIORITY_HIGHEST);

        char value[PROPERTY_VALUE_MAX] = {0};
        property_get("rtsp.transport.TCP", value, "false");
        if (!strcmp(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;