Пример #1
0
 protected function initSmilManifest($flavorAssets)
 {
     $key = $this->getFlavorKeyByTag($flavorAssets, assetParams::TAG_SMIL_MANIFEST, flavorAsset::FILE_SYNC_ASSET_SUB_TYPE_ASSET);
     if (!$key) {
         return false;
     }
     $localFileSync = kFileSyncUtils::getReadyInternalFileSyncForKey($key);
     $remoteFileSync = kFileSyncUtils::getReadyExternalFileSyncForKey($key);
     if ($this->shouldUseLocalFlavors($localFileSync, $remoteFileSync)) {
         $this->deliveryAttributes->setStorageId(null);
         $this->deliveryAttributes->setManifestFileSync($localFileSync);
     } else {
         if ($remoteFileSync) {
             $this->deliveryAttributes->setStorageId($remoteFileSync->getDc());
         }
         $this->deliveryAttributes->setManifestFileSync($remoteFileSync);
     }
     return !is_null($this->deliveryAttributes->getManifestFileSync());
 }
 public function cloneAttributes(DeliveryProfileDynamicAttributes $newObj)
 {
     $this->deliveryProfileIds = $newObj->getDeliveryProfileIds();
     $this->isDeliveryProfilesBlockedList = $newObj->getIsDeliveryProfilesBlockedList();
     $this->format = $newObj->getFormat();
     $this->extension = $newObj->getFileExtension();
     $this->containerFormat = $newObj->getContainerFormat();
     $this->seekFromTime = $newObj->getSeekFromTime();
     $this->clipTo = $newObj->getClipTo();
     $this->playbackRate = $newObj->getPlaybackRate();
     $this->storageId = $newObj->getStorageId();
     $this->entryId = $newObj->getEntryId();
     $this->tags = $newObj->getTags();
     $this->flavorAssets = $newObj->getFlavorAssets();
     $this->remoteFileSyncs = $newObj->getRemoteFileSyncs();
     $this->manifestFileSync = $newObj->getManifestFileSync();
     $this->preferredBitrate = $newObj->getPreferredBitrate();
     $this->responseFormat = $newObj->getResponseFormat();
     $this->mediaProtocol = $newObj->getMediaProtocol();
     $this->usePlayServer = $newObj->getUsePlayServer();
     $this->playerConfig = $newObj->getPlayerConfig();
     $this->uiConfId = $newObj->getUiConfId();
     $this->edgeServerIds = $newObj->getEdgeServerIds();
 }