VideoSegment constructor

VideoSegment(
  1. String videoUri, {
  2. double? startTime,
  3. double? endTime,
})

Creates a new VideoSegment.

The videoUri source 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 startTime represents the start time of the video segment within the composition (in seconds) and the endTime the end time of the segment.

Implementation

VideoSegment(this.videoUri, {this.startTime, this.endTime});