Skip to content

Commit

Permalink
Merge pull request #6920 from kaltura/Mercury-13.17.0-SUPP-13039
Browse files Browse the repository at this point in the history
Mercury-13.17.0-SUP-13039 Playing apple http with non kaltura live
  • Loading branch information
ZurPHP authored Mar 27, 2018
2 parents c2d01ca + 73dd015 commit 29f2a19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions alpha/lib/model/LiveEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function getCustomLiveStreamConfigurations()

public function getLiveStreamConfigurationByProtocol($format, $protocol, $tag = null, $currentDcOnly = false, array $flavorParamsIds = array())
{
$configurations = $this->getLiveStreamConfigurations($protocol, $tag, $currentDcOnly, $flavorParamsIds);
$configurations = $this->getLiveStreamConfigurations($protocol, $tag, $currentDcOnly, $flavorParamsIds, $format);
foreach($configurations as $configuration)
{
/* @var $configuration kLiveStreamConfiguration */
Expand All @@ -340,7 +340,7 @@ public function getLiveStreamConfigurationByProtocol($format, $protocol, $tag =
return null;
}

public function getLiveStreamConfigurations($protocol = 'http', $tag = null, $currentDcOnly = false, array $flavorParamsIds = array())
public function getLiveStreamConfigurations($protocol = 'http', $tag = null, $currentDcOnly = false, array $flavorParamsIds = array(), $format = null)
{
$configurations = array();
if (!in_array($this->getSource(), self::$kalturaLiveSourceTypes))
Expand Down
6 changes: 3 additions & 3 deletions alpha/lib/model/LiveStreamEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ private function getDynamicBroadcastUrl($customDataParam, $functionName, $protoc
return $url;
}

public function getLiveStreamConfigurations($protocol = 'http', $tag = null, $currentDcOnly = false, array $flavorParamsIds = array())
public function getLiveStreamConfigurations($protocol = 'http', $tag = null, $currentDcOnly = false, array $flavorParamsIds = array(), $format = null)
{
$configurations = parent::getLiveStreamConfigurations($protocol, $tag, $currentDcOnly, $flavorParamsIds);
if($protocol == PlaybackProtocol::APPLE_HTTP && !in_array($this->getSource(), self::$kalturaLiveSourceTypes) && $this->getHlsStreamUrl())
$configurations = parent::getLiveStreamConfigurations($protocol, $tag, $currentDcOnly, $flavorParamsIds, $format);
if($format == PlaybackProtocol::APPLE_HTTP && !in_array($this->getSource(), self::$kalturaLiveSourceTypes) && $this->getHlsStreamUrl())
{
$hlsLiveStreamConfig = new kLiveStreamConfiguration();
$hlsLiveStreamConfig->setUrl($this->getHlsStreamUrl());
Expand Down

0 comments on commit 29f2a19

Please sign in to comment.