Video class
A Video can be loaded into the VideoEditor SDK editor.
Constructors
- Video(String video)
-
Creates a new Video from the given source.
The
video
source should either be a full path, an URI or if it is an asset the relative path as specified in yourpubspec.yaml
file. Remote resources are not optimized and therefore should be downloaded in advance and then passed to the editor as local resources. -
Video.composition({List<
String> ? videos, Size? size}) -
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 yourpubspec.yaml
file. Remote resources are not optimized and therefore should be downloaded in advance and then passed to the editor as local resources. Thesize
overrides the natural dimensions of the video(s) passed to the editor. All videos will be fitted to thesize
aspect by adding black bars on the left and right side or top and bottom. Ifvideos
is set tonull
, a validsize
must be given which will initialize the editor with an empty composition. -
Video.fromSegments({List<
VideoSegment> ? segments, Size? size}) -
Creates a new video composition with multiple VideoSegments.
The
size
overrides the natural dimensions of the video(s) passed to the editor. All videos will be fitted to thesize
aspect by adding black bars on the left and right side or top and bottom. Ifsegments
is set tonull
, a validsize
must be given which will initialize the editor with an empty composition.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited