PATH:
home
/
lab2454c
/
healthvalidate.com
/
vendor
/
cloudinary
/
cloudinary_php
/
src
/
Transformation
/
Layer
<?php /** * This file is part of the Cloudinary PHP package. * * (c) Cloudinary * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cloudinary\Transformation; use Cloudinary\ArrayUtils; use Cloudinary\ClassUtils; /** * Defines how the video layer is applied. * * **Learn more**: <a * href="https://cloudinary.com/documentation/video_manipulation_and_delivery#adding_video_overlays" target="_blank"> * Video overlays</a> * * @api */ class VideoOverlay extends BaseSourceContainer { /** * @var Timeline $timeline The timeline position of the overlay. */ protected $timeline; /** * BaseLayerContainer constructor. * * @param BaseSource|string $source * @param BasePosition|null $position * @param Timeline|null $timeline */ public function __construct( $source = null, $position = null, $timeline = null ) { parent::__construct($source, $position); $this->timeline($timeline); } /** * Sets the timeline position of the overlay. * * @param Timeline|null $timeline The timeline position of the overlay. * * @return BaseSourceContainer */ public function timeline(Timeline $timeline = null) { $this->timeline = $timeline; return $this; } /** * Indicates that the video should be concatenated on to the container video and not added as an overlay. * * @return $this */ protected function concatenate() { $this->source->setFlag(LayerFlag::splice()); return $this; } /** * Indicates that the video should be used as a cutter for the main video. * * @return $this */ public function cutter() { $this->source->setFlag(LayerFlag::cutter()); return $this; } /** * Sets the source. * * @param BaseSource $source The source. * * @return static */ public function source($source) { $this->source = ClassUtils::verifyInstance($source, BaseSource::class, VideoSource::class); return $this; } /** * Sets the layer position. * * @param Position $position The Position of the layer. * * @return static */ public function position($position = null) { $this->position = ClassUtils::verifyInstance($position, BasePosition::class, AbsolutePosition::class); return $this; } /** * @return array */ protected function getSubActionQualifiers() { $subActionQualifiers = parent::getSubActionQualifiers(); $subActionQualifiers['additional'] = ArrayUtils::mergeNonEmpty( $subActionQualifiers['additional'], $this->timeline? $this->timeline->getStringQualifiers(): [] ); return $subActionQualifiers; } }
[-] VideoSourceQualifier.php
[edit]
[-] LayerStackPosition.php
[edit]
[-] LayerQualifierFactory.php
[edit]
[-] Underlay.php
[edit]
[+]
..
[-] SubtitlesSource.php
[edit]
[-] LayerSourceTrait.php
[edit]
[-] AssetBasedSource.php
[edit]
[-] RemoteSourceValue.php
[edit]
[-] LutLayer.php
[edit]
[-] ImageOverlay.php
[edit]
[-] BaseSourceQualifier.php
[edit]
[-] Transition.php
[edit]
[-] TextSource.php
[edit]
[-] FetchImageSource.php
[edit]
[-] SourceValue.php
[edit]
[-] BlendMode.php
[edit]
[-] VideoSourceTrait.php
[edit]
[-] LayerQualifierTrait.php
[edit]
[-] Overlay.php
[edit]
[-] ImageSourceQualifier.php
[edit]
[-] TextSourceQualifier.php
[edit]
[-] VideoSource.php
[edit]
[-] ImageSourceTrait.php
[edit]
[-] MediaOverlay.php
[edit]
[-] SubtitlesSourceQualifier.php
[edit]
[-] LutSourceQualifier.php
[edit]
[-] Source.php
[edit]
[-] BaseSource.php
[edit]
[-] ImageSource.php
[edit]
[-] BaseSourceContainer.php
[edit]
[-] FetchSourceQualifier.php
[edit]
[-] VideoOverlay.php
[edit]