protected function doGetFlavorAssetUrl(flavorAsset $flavorAsset) { $url = parent::doGetFlavorAssetUrl($flavorAsset); $url .= '/forceproxy/true'; if ($this->params->getFileExtension()) { $url .= "/name/a." . $this->params->getFileExtension(); } return $url; }
protected function doGetFileSyncUrl(FileSync $fileSync) { $url = parent::doGetFileSyncUrl($fileSync); $pattern = $this->getPattern(); if (is_null($pattern)) { $pattern = '/hds-vod/{url}.f4m'; } return kDeliveryUtils::formatGenericUrl($url, $pattern, $this->params); }
/** * returns whether the delivery profile supports the passed deliveryAttributes such as mediaProtocol, flv support, etc.. * @param DeliveryProfileDynamicAttributes $deliveryAttributes */ public function supportsDeliveryDynamicAttributes(DeliveryProfileDynamicAttributes $deliveryAttributes) { $result = parent::supportsDeliveryDynamicAttributes($deliveryAttributes); if ($result == self::DYNAMIC_ATTRIBUTES_NO_SUPPORT) { return $result; } foreach ($deliveryAttributes->getFlavorAssets() as $flavorAsset) { if (strtolower($flavorAsset->getFileExt()) == 'flv' || strtolower($flavorAsset->getContainerFormat()) == 'flash video') { return self::DYNAMIC_ATTRIBUTES_NO_SUPPORT; } } return $result; }
function __construct() { parent::__construct(); $this->DEFAULT_RENDERER_CLASS = 'kF4Mv2ManifestRenderer'; }