Classes
Methods
-
<static> concatenate( source ) → {Actions.VideoEdit.ConcatenateAction}
action
-
Description
Concatenates another video.
Learn more: Concatenating videos
Parameters
Name Type Description source
VideoSource The source to concatenate.
Returns
Examples
import {Cloudinary} from "@cloudinary/url-gen"; import {concatenate} from "@cloudinary/url-gen/actions/videoEdit"; import {videoSource as concatVideoSource} from "@cloudinary/url-gen/qualifiers/concatenate"; import {videoSource as tVideoSource} from "@cloudinary/url-gen/qualifiers/transition.js"; const yourCldInstance = new Cloudinary({cloud:{cloudName:'demo'}}); const video = yourCldInstance.video('dog'); video.videoEdit( concatenate(concatVideoSource('butterfly')) .transition(tVideoSource('myTransition')) .duration(5) )
Details
-
<static> trim() → {Actions.VideoEdit.TrimAction}
action
-
Description
Trims a video (and discards the rest).
Learn more: Trimming videos
Returns
Examples
import {Cloudinary} from "@cloudinary/url-gen"; import {trim} from "@cloudinary/url-gen/actions/videoEdit"; const yourCldInstance = new Cloudinary({cloud:{cloudName:'demo'}}); const video = yourCldInstance.video('dog'); video.videoEdit( trim() .startOffset(3) .endOffset(4) .duration(10) )
Details
-
<static> volume( volumeValue ) → {Actions.VideoEdit.VolumeAction}
action
-
Description
Increases or decreases the volume by a percentage of the current volume.
Learn more: Adjust the audio volume
Parameters
Name Type Description volumeValue
string | number The value of volume. The percentage change of volume (Range: -100 to 400). For a list of supported types see
Volume values
Returns
Examples
import {Cloudinary} from "@cloudinary/url-gen"; import {volume} from "@cloudinary/url-gen/actions/videoEdit"; import {mute} from '@cloudinary/url-gen/qualifiers/volume'; const yourCldInstance = new Cloudinary({cloud:{cloudName:'demo'}}); const video = yourCldInstance.video('dog'); video.videoEdit( volume(10) ) // as percent video.videoEdit( volume('5db') ) // as decibels video.videoEdit( volume(mute()) ) // if you prefer silence..
Details
-
<static> preview() → {Actions.VideoEdit.PreviewAction}
action
-
Description
A video preview is a short excerpt from a video that can be used to engage your audience and help them select the video content that interests them.
Learn more: Create a video preview
Returns
Examples
import {Cloudinary} from "@cloudinary/url-gen"; import {preview} from "@cloudinary/url-gen/actions/videoEdit"; const yourCldInstance = new Cloudinary({cloud:{cloudName:'demo'}}); const video = yourCldInstance.video('dog'); video.videoEdit( preview() .duration(5) .minimumSegmentDuration(1) .maximumSegments(10) )
Details