trait PlaybackEffectTrait

Trait PlaybackEffectTrait

Methods

accelerate(int $rate = null)

Changes the speed of the video playback.

boomerang()

Causes a video clip to play forwards and then backwards.

loop(int $additionalIterations = null)

Delivers a video that contains additional loops of the video.

reverse()

Plays the video or audio file in reverse.

volume(int|Volume $level)

Increases or decreases the volume by a percentage of the current volume.

transition()

Indicates that the video overlay is to be used as a transition between the base and second video.

Details

static Accelerate accelerate(int $rate = null)

Changes the speed of the video playback.

Parameters

Name Type Description
$rate int The percentage change of speed. Positive numbers speed up the playback, negative numbers slow down the playback (Range: -50 to 100, Server default: 0).

Return Value

Accelerate

static EffectAction boomerang()

Causes a video clip to play forwards and then backwards.

Use in conjunction with trimming qualifiers ('duration', 'start_offset', or 'end_offset') and the 'loop' effect to deliver a classic (short, repeating) boomerang clip. For details and examples, see 'Create a boomerang video clip' in the Video Transformations guide.

static Loop loop(int $additionalIterations = null)

Delivers a video that contains additional loops of the video.

The total number of iterations is the number of additional loops plus one.

For animated images (GIF), see Animated::edit()->loop().

Parameters

Name Type Description
$additionalIterations int The additional number of times to play the video.

Return Value

Loop

static EffectAction reverse()

Plays the video or audio file in reverse.

Return Value

EffectAction

static EffectAction volume(int|Volume $level)

Increases or decreases the volume by a percentage of the current volume.

Also see \Cloudinary\Transformation\Volume for different ways to change the volume.

Parameters

Name Type Description
$level int|Volume The percentage change of volume (Range: -100 to 400).

Return Value

EffectAction

See also

Volume

static EffectAction transition()

Indicates that the video overlay is to be used as a transition between the base and second video.

Return Value

EffectAction