trimVideo method

  1. @override
Future<String> trimVideo(
  1. String filePath,
  2. double startSeconds,
  3. double endSeconds
)
override

Trims a video file to the specified time range.

Implementation

@override
Future<String> trimVideo(
    String filePath, double startSeconds, double endSeconds) async {
  final result = await methodChannel.invokeMethod<String>('trimVideo', {
    'filePath': filePath,
    'startSeconds': startSeconds,
    'endSeconds': endSeconds,
  });
  return result ?? filePath;
}