Skip to content

Commit

Permalink
FEV-120 Reduce player load time (kaltura#3581)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalturaguy authored Oct 16, 2017
1 parent 6ba87c4 commit 7b4f4b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/EmbedPlayer/resources/mw.EmbedPlayerSilverlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,20 +273,24 @@
}
};

var firstKESConnectTry=true;

var startConnectToKESTimer = function () {

//in case of fallback to unicast we don't want to restart by accident
if (!_this.isMulticast || !_this.multiastServerUrl) {
return;
}

var retryTime= _this.getKalturaConfig( null , 'multicastKESStartInterval' ) || _this.defaultMulticastKESStartInterval;

var retryTime= firstKESConnectTry? 0 : (_this.getKalturaConfig( null , 'multicastKESStartInterval' ) || _this.defaultMulticastKESStartInterval);

if (_this.isOnline && _this.multicastSessionId)
retryTime=_this.getKalturaConfig( null , 'multicastKeepAliveInterval' ) || _this.defaultMulticastKeepAliveInterval;

_this.keepAliveMCTimeout = setTimeout( function () {
try {
firstKESConnectTry=false;
if(_this.isOnline)
{
_this.connectToKES(_this.multiastServerUrl) .then(onKESResponse, onKESErrorResponce)
Expand Down

0 comments on commit 7b4f4b8

Please sign in to comment.