-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
**context:** adding a fallback option upon inaccessible API Gateway. BE are adding new property to `KalturaAccessControlModifyRequestHostRegexAction` named `checkAliveTimeoutMs` - see ref [here](https://www.kaltura.com/api_v3/testmeDoc/objects/KalturaAccessControlModifyRequestHostRegexAction.html), 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 Solves FEC-12521
- Loading branch information
1 parent
a8b1af6
commit 8786fc6
Showing
1 changed file
with
74 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters