public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->cropType)) { $this->cropType = (int) $xml->cropType; } if (count($xml->quality)) { $this->quality = (int) $xml->quality; } if (count($xml->cropX)) { $this->cropX = (int) $xml->cropX; } if (count($xml->cropY)) { $this->cropY = (int) $xml->cropY; } if (count($xml->cropWidth)) { $this->cropWidth = (int) $xml->cropWidth; } if (count($xml->cropHeight)) { $this->cropHeight = (int) $xml->cropHeight; } if (count($xml->videoOffset)) { $this->videoOffset = (double) $xml->videoOffset; } if (count($xml->width)) { $this->width = (int) $xml->width; } if (count($xml->height)) { $this->height = (int) $xml->height; } if (count($xml->scaleWidth)) { $this->scaleWidth = (double) $xml->scaleWidth; } if (count($xml->scaleHeight)) { $this->scaleHeight = (double) $xml->scaleHeight; } $this->backgroundColor = (string) $xml->backgroundColor; if (count($xml->sourceParamsId)) { $this->sourceParamsId = (int) $xml->sourceParamsId; } $this->format = (string) $xml->format; if (count($xml->density)) { $this->density = (int) $xml->density; } if (!empty($xml->stripProfiles)) { $this->stripProfiles = true; } if (count($xml->videoOffsetInPercentage)) { $this->videoOffsetInPercentage = (int) $xml->videoOffsetInPercentage; } }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->language = (string) $xml->language; if (count($xml->isDefault)) { $this->isDefault = (int) $xml->isDefault; } $this->label = (string) $xml->label; $this->format = (string) $xml->format; if (count($xml->sourceParamsId)) { $this->sourceParamsId = (int) $xml->sourceParamsId; } }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->assetParamsId)) { $this->assetParamsId = (int) $xml->assetParamsId; } $this->assetParamsVersion = (string) $xml->assetParamsVersion; $this->assetId = (string) $xml->assetId; $this->assetVersion = (string) $xml->assetVersion; if (count($xml->readyBehavior)) { $this->readyBehavior = (int) $xml->readyBehavior; } $this->format = (string) $xml->format; }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->videoCodec = (string) $xml->videoCodec; if (count($xml->videoBitrate)) { $this->videoBitrate = (int) $xml->videoBitrate; } $this->audioCodec = (string) $xml->audioCodec; if (count($xml->audioBitrate)) { $this->audioBitrate = (int) $xml->audioBitrate; } if (count($xml->audioChannels)) { $this->audioChannels = (int) $xml->audioChannels; } if (count($xml->audioSampleRate)) { $this->audioSampleRate = (int) $xml->audioSampleRate; } if (count($xml->width)) { $this->width = (int) $xml->width; } if (count($xml->height)) { $this->height = (int) $xml->height; } if (count($xml->frameRate)) { $this->frameRate = (int) $xml->frameRate; } if (count($xml->gopSize)) { $this->gopSize = (int) $xml->gopSize; } $this->conversionEngines = (string) $xml->conversionEngines; $this->conversionEnginesExtraParams = (string) $xml->conversionEnginesExtraParams; if (!empty($xml->twoPass)) { $this->twoPass = true; } if (count($xml->deinterlice)) { $this->deinterlice = (int) $xml->deinterlice; } if (count($xml->rotate)) { $this->rotate = (int) $xml->rotate; } $this->operators = (string) $xml->operators; if (count($xml->engineVersion)) { $this->engineVersion = (int) $xml->engineVersion; } $this->format = (string) $xml->format; if (count($xml->aspectRatioProcessingMode)) { $this->aspectRatioProcessingMode = (int) $xml->aspectRatioProcessingMode; } if (count($xml->forceFrameToMultiplication16)) { $this->forceFrameToMultiplication16 = (int) $xml->forceFrameToMultiplication16; } if (count($xml->isGopInSec)) { $this->isGopInSec = (int) $xml->isGopInSec; } if (count($xml->isAvoidVideoShrinkFramesizeToSource)) { $this->isAvoidVideoShrinkFramesizeToSource = (int) $xml->isAvoidVideoShrinkFramesizeToSource; } if (count($xml->isAvoidVideoShrinkBitrateToSource)) { $this->isAvoidVideoShrinkBitrateToSource = (int) $xml->isAvoidVideoShrinkBitrateToSource; } if (count($xml->isVideoFrameRateForLowBrAppleHls)) { $this->isVideoFrameRateForLowBrAppleHls = (int) $xml->isVideoFrameRateForLowBrAppleHls; } if (count($xml->anamorphicPixels)) { $this->anamorphicPixels = (double) $xml->anamorphicPixels; } if (count($xml->isAvoidForcedKeyFrames)) { $this->isAvoidForcedKeyFrames = (int) $xml->isAvoidForcedKeyFrames; } if (count($xml->maxFrameRate)) { $this->maxFrameRate = (int) $xml->maxFrameRate; } if (count($xml->videoConstantBitrate)) { $this->videoConstantBitrate = (int) $xml->videoConstantBitrate; } if (count($xml->videoBitrateTolerance)) { $this->videoBitrateTolerance = (int) $xml->videoBitrateTolerance; } if (count($xml->clipOffset)) { $this->clipOffset = (int) $xml->clipOffset; } if (count($xml->clipDuration)) { $this->clipDuration = (int) $xml->clipDuration; } }