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

Commit 6180b272 authored by Santhosh Behara's avatar Santhosh Behara Committed by Robert Shih
Browse files

rtsp: Use system property to enable RTP over TCP

- Add property "rtp.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

Bug: 34909668
Author: Surajit Podder <spodder@codeaurora.org>
Change-Id: Ic27b440067af49e7e3bcc45d86eb7a17ae9db54f
parent d52a1ea3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
#include "ASessionDescription.h"

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

#include <media/stagefright/foundation/ABuffer.h>
#include <media/stagefright/foundation/ADebug.h>
@@ -135,7 +136,7 @@ struct MyHandler : public AHandler {
          mCheckPending(false),
          mCheckGeneration(0),
          mCheckTimeoutGeneration(0),
          mTryTCPInterleaving(false),
          mTryTCPInterleaving(property_get_bool("rtp.transport.TCP", false)),
          mTryFakeRTCP(false),
          mReceivedFirstRTCPPacket(false),
          mReceivedFirstRTPPacket(false),