protected function doGetFileSyncUrl(FileSync $fileSync)
 {
     $path = parent::doGetFileSyncUrl($fileSync);
     $host = preg_replace("(https?://)", "", $this->getUrl());
     $urlSuffix = str_replace('\\', '/', $path);
     return "http://" . $host . '/' . ltrim($urlSuffix, '/');
 }
示例#2
0
 public function finalizeUrls(&$baseUrl, &$flavorsUrls)
 {
     if ($this->getEnforceRtmpe()) {
         $baseUrl = preg_replace('/^rtmp:\\/\\//', 'rtmpe://', $baseUrl);
         $baseUrl = preg_replace('/^rtmpt:\\/\\//', 'rtmpte://', $baseUrl);
     }
     parent::finalizeUrls($baseUrl, $flavorsUrls);
 }
示例#3
0
 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;
 }
示例#4
0
 function __construct()
 {
     parent::__construct();
     $this->DEFAULT_RENDERER_CLASS = 'kF4MManifestRenderer';
 }
示例#5
0
 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;
 }