From 319a65b8fac15540856faaea0c55de6b8eedf51a Mon Sep 17 00:00:00 2001 From: Inbal Vasserman Date: Wed, 16 Aug 2023 12:06:42 +0300 Subject: [PATCH] fix(SUP-38476): [EU Cloud] - issues with video broadcast --- modules/KalturaSupport/resources/mw.KWidgetSupport.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/KalturaSupport/resources/mw.KWidgetSupport.js b/modules/KalturaSupport/resources/mw.KWidgetSupport.js index 8fbfcf4bda..f36cbdb300 100644 --- a/modules/KalturaSupport/resources/mw.KWidgetSupport.js +++ b/modules/KalturaSupport/resources/mw.KWidgetSupport.js @@ -20,7 +20,6 @@ mw.KWidgetSupport.prototype = { kClient : null, kSessionId: null, // Used for Analytics events originalStreamerType: null, - originalServiceUrl: null, // Constructor check settings etc init: function( options ){ @@ -302,10 +301,12 @@ mw.KWidgetSupport.prototype = { if (action.pattern && action.replacement) { var regExp=new RegExp(action.pattern, "i"); - if (!this.originalServiceUrl){ - this.originalServiceUrl = mw.config.get('Kaltura.playManifestServiceUrl'); + var originalServiceUrl = window.parent.mw.getConfig('Kaltura.originalServiceUrl'); + if (!originalServiceUrl){ + originalServiceUrl = mw.config.get('Kaltura.playManifestServiceUrl'); + window.parent.mw.setConfig('Kaltura.originalServiceUrl', originalServiceUrl) } - var serviceUrl = this.originalServiceUrl; + var serviceUrl = originalServiceUrl; var match = serviceUrl.match( regExp ); if (match) { serviceUrl = serviceUrl.replace(regExp, action.replacement);