Skip to content

Commit

Permalink
Merge pull request kaltura#5385 from kaltura/Lynx-12.14.0-PlayerAware…
Browse files Browse the repository at this point in the history
…ness

PLAT-7142:ad stitching player awareness patches
  • Loading branch information
EladCohenKaltura authored Apr 5, 2017
2 parents f7b7d27 + dc50e69 commit ece3a75
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,8 @@ private function setParamsForPlayServer($usePlayServer)
$this->deliveryAttributes->setUiConfId($this->getRequestParameter("uiConfId"));
if(!$this->deliveryAttributes->getUiConfId())
$this->deliveryAttributes->setUiConfId($this->getRequestParameter("uiconf"));
if($this->getRequestParameter("sessionId"))
$this->deliveryAttributes->setSessionId($this->getRequestParameter("sessionId"));
}
}

Expand Down
22 changes: 21 additions & 1 deletion alpha/lib/model/DeliveryProfileDynamicAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ class DeliveryProfileDynamicAttributes {
*/
protected $serveLiveAsVodEntryId;

/**
* @var string
*/
protected $sessionId;

/**
* request a specific delivery profile id
* @var int
Expand Down Expand Up @@ -531,7 +536,21 @@ public function getServeLiveAsVodEntryId()
{
return $this->serveLiveAsVodEntryId;
}


/**
* @return the $sessionId
*/
public function getSessionId() {
return $this->sessionId;
}

/**
* @param $sessionId
*/
public function setSessionId($sessionId) {
$this->sessionId = $sessionId;
}

/**
* @param array<asset|assetParams> $flavors
* @return array
Expand Down Expand Up @@ -606,6 +625,7 @@ public function cloneAttributes(DeliveryProfileDynamicAttributes $newObj) {
$this->serveLiveAsVodEntryId = $newObj->getServeLiveAsVodEntryId();
$this->urlParams = $newObj->getUrlParams();
$this->deliveryProfileId = $newObj->getDeliveryProfileId();
$this->sessionId = $newObj->getSessionId();
}
}

7 changes: 5 additions & 2 deletions alpha/lib/model/DeliveryProfileVod.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ protected function generatePlayServerUrl()
$prefix = '';
if($this->getDynamicAttributes()->getUiConfId())
$prefix .= '/uiConfId/'.$this->getDynamicAttributes()->getUiConfId();

$prefix .= '/sessionId/{sessionId}';
$sessionId = $this->getDynamicAttributes()->getSessionId();
if($sessionId)
$prefix .= '/sessionId/'.$sessionId;
else
$prefix .= '/sessionId/{sessionId}';

return $prefix;
}
Expand Down

0 comments on commit ece3a75

Please sign in to comment.