Skip to content

Commit

Permalink
Merge pull request #4312 from kaltura/SUP-38476
Browse files Browse the repository at this point in the history
fix(SUP-38476): [EU Cloud] - issues with video broadcast
  • Loading branch information
inbalvasserman authored Aug 16, 2023
2 parents d3acea3 + 319a65b commit cfec3ea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/KalturaSupport/resources/mw.KWidgetSupport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ){
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cfec3ea

Please sign in to comment.