protected function getVersionForSubType($sub_type, $version = null) { if ($sub_type == self::FILE_SYNC_ASSET_SUB_TYPE_LIVE_PRIMARY) { return $this->getLiveSegmentVersion(MediaServerIndex::PRIMARY); } if ($sub_type == self::FILE_SYNC_ASSET_SUB_TYPE_LIVE_SECONDARY) { return $this->getLiveSegmentVersion(MediaServerIndex::SECONDARY); } return parent::getVersionForSubType($sub_type, $version); }