diff --git a/alpha/apps/kaltura/lib/manifest/kManifestContributorConfig.php b/alpha/apps/kaltura/lib/manifest/kManifestContributorConfig.php index b101afa5756..0320e292b7b 100644 --- a/alpha/apps/kaltura/lib/manifest/kManifestContributorConfig.php +++ b/alpha/apps/kaltura/lib/manifest/kManifestContributorConfig.php @@ -38,4 +38,9 @@ class kManifestContributorConfig */ public $hasSequence; -} \ No newline at end of file + /** + * @var bool + */ + public $disableCaptions; + +} diff --git a/alpha/apps/kaltura/modules/extwidget/actions/playManifestAction.class.php b/alpha/apps/kaltura/modules/extwidget/actions/playManifestAction.class.php index b41b4cd4446..b3b0438d89f 100644 --- a/alpha/apps/kaltura/modules/extwidget/actions/playManifestAction.class.php +++ b/alpha/apps/kaltura/modules/extwidget/actions/playManifestAction.class.php @@ -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) { diff --git a/plugins/content/caption/base/CaptionPlugin.php b/plugins/content/caption/base/CaptionPlugin.php index c0973934d51..d9964c3bbaa 100644 --- a/plugins/content/caption/base/CaptionPlugin.php +++ b/plugins/content/caption/base/CaptionPlugin.php @@ -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)