protected function doGetFlavorAssetUrl(flavorAsset $flavorAsset) { $url = parent::doGetFlavorAssetUrl($flavorAsset); $url = "/s" . $url; $url .= '?novar=0'; return $this->addSeekFromBytes($flavorAsset, $url, 'fs'); }
protected function doGetFlavorAssetUrl(flavorAsset $flavorAsset) { $url = parent::doGetFlavorAssetUrl($flavorAsset); $entry = $flavorAsset->getentry(); if ($entry->getSecurityPolicy()) { $url = "/s{$url}"; } $url .= '?novar=0'; return $this->addSeekFromBytes($flavorAsset, $url, 'start'); }
/** * @param FileSync $fileSync * @return string */ protected function doGetFileSyncUrl(FileSync $fileSync) { $url = parent::doGetFileSyncUrl($fileSync); $url = preg_replace('/^mp4:(\\/)*/', 'mp4:', $url); if ($this->protocol == PlaybackProtocol::HTTP) { $syncKey = kFileSyncUtils::getKeyForFileSync($fileSync); $url = $this->addEcSeek($url, $syncKey); } return $url; }
/** * returns whether the delivery profile supports the passed deliveryAttributes in this case seekFrom * @param DeliveryProfileDynamicAttributes $deliveryAttributes */ public function supportsDeliveryDynamicAttributes(DeliveryProfileDynamicAttributes $deliveryAttributes) { $result = parent::supportsDeliveryDynamicAttributes($deliveryAttributes); if ($result == self::DYNAMIC_ATTRIBUTES_NO_SUPPORT) { return $result; } // the profile supports seek if it has the {seekFromSec} placeholder in its pattern if ($deliveryAttributes->getSeekFromTime() > 0 && strpos($this->getPattern(), "{seekFromSec}") === false) { return self::DYNAMIC_ATTRIBUTES_PARTIAL_SUPPORT; } return $result; }