2059352 Based on the value of the property "ro.com.android.disable_rtsp_nat" send the KVP key to disable rtsp firewall packets.
diff --git a/android/playerdriver.cpp b/android/playerdriver.cpp
index 077f23f..d87042d 100644
--- a/android/playerdriver.cpp
+++ b/android/playerdriver.cpp
@@ -847,6 +847,19 @@
OSCL_TRY(error, mPlayerCapConfig->setParametersSync(NULL, &iKVPSetAsync, 1, iErrorKVP));
OSCL_TRY(error, mPlayer->Prepare(command));
OSCL_FIRST_CATCH_ANY(error, commandFailed(command));
+
+ char value[PROPERTY_VALUE_MAX] = {"0"};
+ property_get("ro.com.android.disable_rtsp_nat", value, "0");
+ LOGV("disable natpkt - %s",value);
+ if (1 == atoi(value))
+ {
+ //disable firewall packet
+ iKeyStringSetAsync=_STRLIT_CHAR("x-pvmf/net/disable-firewall-packets;valtype=bool");
+ iKVPSetAsync.key=iKeyStringSetAsync.get_str();
+ iKVPSetAsync.value.bool_value = 1; //1 - disable
+ iErrorKVP=NULL;
+ OSCL_TRY(error,mPlayerCapConfig->setParametersSync(NULL, &iKVPSetAsync, 1, iErrorKVP));
+ }
}
void PlayerDriver::handleStart(PlayerStart* command)