protected function doGetFileSyncUrl(FileSync $fileSync)
 {
     $path = parent::doGetFileSyncUrl($fileSync);
     $host = preg_replace("(https?://)", "", $this->getUrl());
     $urlSuffix = str_replace('\\', '/', $path);
     return "http://" . $host . '/' . ltrim($urlSuffix, '/');
 }
 public function finalizeUrls(&$baseUrl, &$flavorsUrls)
 {
     if ($this->getEnforceRtmpe()) {
         $baseUrl = preg_replace('/^rtmp:\\/\\//', 'rtmpe://', $baseUrl);
         $baseUrl = preg_replace('/^rtmpt:\\/\\//', 'rtmpte://', $baseUrl);
     }
     parent::finalizeUrls($baseUrl, $flavorsUrls);
 }
 protected function doGetFlavorAssetUrl(flavorAsset $flavorAsset)
 {
     $url = parent::doGetFlavorAssetUrl($flavorAsset);
     if ($this->params->getFileExtension()) {
         $url .= "/name/a." . $this->params->getFileExtension();
     }
     if ($this->params->getSeekFromTime() > 0) {
         $url .= "/seekFrom/" . $this->params->getSeekFromTime();
     }
     return $url;
 }
Beispiel #4
0
 function __construct()
 {
     parent::__construct();
     $this->DEFAULT_RENDERER_CLASS = 'kF4MManifestRenderer';
 }
 public function getRenderer($flavors)
 {
     $renderer = parent::getRenderer($flavors);
     $renderer->baseUrl = $this->baseUrl;
     return $renderer;
 }
 protected function doGetFlavorAssetUrl(flavorAsset $flavorAsset)
 {
     $url = parent::doGetFlavorAssetUrl($flavorAsset);
     $url .= "/file/playlist.m3u8";
     return $url;
 }