Skip to content

Commit

Permalink
Merge pull request kaltura#5979 from kaltura/Mercury-13.2.0-PLAT-7942
Browse files Browse the repository at this point in the history
Mercury 13.2.0 plat 7942
  • Loading branch information
shpiNi authored Sep 4, 2017
2 parents 164a2a0 + ec4ee0a commit 3f41ce3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ class kManifestContributorConfig
*/
public $hasSequence;

}
/**
* @var bool
*/
public $disableCaptions;

}
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,8 @@ public function execute()
$config->rendererClass = get_class($renderer);
$config->deliveryProfile = $this->deliveryProfile;
$config->hasSequence = $this->deliveryAttributes->getHasValidSequence();
$config->disableCaptions = $this->getRequestParameter("disableCaptions", false);

$contributors = KalturaPluginManager::getPluginInstances('IKalturaPlayManifestContributor');
foreach ($contributors as $contributor)
{
Expand Down
3 changes: 3 additions & 0 deletions plugins/content/caption/base/CaptionPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@ static protected function getLocalCaptionUrl($config, asset $captionAsset)
*/
public static function getManifestEditors ($config)
{
if($config->disableCaptions)
return array();

$contributors = array();

switch ($config->format)
Expand Down

0 comments on commit 3f41ce3

Please sign in to comment.