protected function doGetFileSyncUrl(FileSync $fileSync)
 {
     $url = parent::doGetFileSyncUrl($fileSync);
     $pattern = $this->getPattern();
     if (is_null($pattern)) {
         $pattern = '{url}';
     }
     return kDeliveryUtils::formatGenericUrl($url, $pattern, $this->params);
 }
 /**
  * @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;
 }