context:
adding a fallback option upon inaccessible API Gateway.
BE are adding new property to KalturaAccessControlModifyRequestHostRegexAction named checkAliveTimeoutMs - see ref here, which defines the timeout duration for checking the ip.
solution:
when the new property checkAliveTimeoutMs is defined and its value is bigger than 0, an ajax call to the serviceUrl is being made.
the URLs replacement will occur only if the connection succeeded or checkAliveTimeoutMs is 0, null, negative number.
in case checkAliveTimeoutMs is a valid value (bigger than 0) and the ajax call has failed, we are not overriding the urls.
description of changes:
add async ajax call with timeout
use promise on updatePlayerContextData to prevent async issues
context: adding a fallback option upon inaccessible API Gateway. BE are adding new property to
KalturaAccessControlModifyRequestHostRegexAction
namedcheckAliveTimeoutMs
- see ref here, which defines the timeout duration for checking the ip.solution:
checkAliveTimeoutMs
is defined and its value is bigger than 0, an ajax call to the serviceUrl is being made.checkAliveTimeoutMs
is 0, null, negative number.checkAliveTimeoutMs
is a valid value (bigger than 0) and the ajax call has failed, we are not overriding the urls.description of changes:
updatePlayerContextData
to prevent async issuesSolves FEC-12521