Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.
/ rdk-aamp Public archive

Commit dd9ea13

Browse files
Bhuvaneswari07pmaria904
authored and
pmaria904
committed
RDKAAMP-378: Config to ignore the liveOffset from App for LLD
Reason for change: Added configuration to restrict the liveoffset set by App ,default value is false Test Procedure: Refer jira ticket Risks: Medium Signed-off-by: Bhuvaneswari_Mariappan<[email protected]> Change-Id: I7ec9ebf83c7617116a137e6e77e83bbd9b2ef017
1 parent c4a4fec commit dd9ea13

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

AampConfig.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ static AampConfigLookupEntry ConfigLookUpTable[] =
290290
,{"SlowMotion", eAAMPConfig_EnableSlowMotion, true, -1, -1}
291291
,{"enableSCTE35PresentationTime", eAAMPConfig_EnableSCTE35PresentationTime, false, -1, -1}
292292
,{"jsinfo",eAAMPConfig_JsInfoLogging,false, -1, -1}
293+
,{"ignoreAppLiveOffset", eAAMPConfig_IgnoreAppLiveOffset, false, -1, -1}
293294
};
294295
/////////////////// Public Functions /////////////////////////////////////
295296
/**
@@ -2029,6 +2030,19 @@ void AampConfig::DoCustomSetting(ConfigPriority owner)
20292030
sAampCfgValue[eAAMPConfig_AuthToken-eAAMPConfig_StringStartValue].lastowner = tempowner;
20302031
sAampCfgValue[eAAMPConfig_AuthToken-eAAMPConfig_StringStartValue].lastvalue = tempvalue;
20312032

2033+
}
2034+
if(IsConfigSet(eAAMPConfig_IgnoreAppLiveOffset) && (GetConfigOwner(eAAMPConfig_LiveOffset) == AAMP_APPLICATION_SETTING))
2035+
{
2036+
ConfigPriority tempowner;
2037+
double tempvalue,Appoffset;
2038+
GetConfigValue(eAAMPConfig_LiveOffset,Appoffset);
2039+
tempowner = dAampCfgValue[eAAMPConfig_LiveOffset-eAAMPConfig_DoubleStartValue].lastowner;
2040+
tempvalue = dAampCfgValue[eAAMPConfig_LiveOffset-eAAMPConfig_DoubleStartValue].lastvalue;
2041+
dAampCfgValue[eAAMPConfig_LiveOffset-eAAMPConfig_DoubleStartValue].owner = tempowner;
2042+
dAampCfgValue[eAAMPConfig_LiveOffset-eAAMPConfig_DoubleStartValue].value = tempvalue;
2043+
AAMPLOG_INFO("\n IgnoreAppLiveOffset Enabled,LiveOffset changed from %lf to %lf ",Appoffset,tempvalue);
2044+
2045+
20322046
}
20332047

20342048
ConfigureLogSettings();

AampConfig.h

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ typedef enum
205205
eAAMPConfig_EnableSlowMotion, /**< Enable/Disable Slowmotion playback */
206206
eAAMPConfig_EnableSCTE35PresentationTime, /**< Enable/Disable use of SCTE PTS presentation time */
207207
eAAMPConfig_JsInfoLogging, /**< Enable/disable jsinfo logging */
208+
eAAMPConfig_IgnoreAppLiveOffset, /** <Config to ignore the liveOffset from App for LLD */
208209
eAAMPConfig_BoolMaxValue,
209210
/////////////////////////////////
210211
eAAMPConfig_IntStartValue,

0 commit comments

Comments
 (0)