Video.composition constructor
Creates a new video composition with multiple videos.
The videos
each should either be a full path, an URI
or if it is an asset the relative path as specified in
your pubspec.yaml
file.
Remote resources are not optimized and therefore should be downloaded
in advance and then passed to the editor as local resources.
The size
overrides the natural dimensions of the video(s) passed to the
editor. All videos will be fitted to the size
aspect by adding
black bars on the left and right side or top and bottom.
If videos
is set to null
, a valid size
must be given
which will initialize the editor with an empty composition.
Licensing:
In order to use this feature, you need to unlock it for your license first.
Implementation
Video.composition({List<String>? videos, Size? size})
: _videos = videos,
_size = size,
_segments = null,
_video = null;