saveVideo method

Future<AssetEntity?> saveVideo(
  1. File file, {
  2. String? title,
  3. String? desc,
  4. String? relativePath,
})

Save video to gallery.

in iOS is Recent. in Android is video directory. On Android 28 or lower, if the file is located in the external storage, it's path will be used in the MediaStore. On Android 29 or above, you can use relativePath to specify a RELATIVE_PATH used in the MediaStore.

Implementation

Future<AssetEntity?> saveVideo(
  File file, {
  String? title,
  String? desc,
  String? relativePath,
}) async {
  return _plugin.saveVideo(
    file,
    title: title,
    desc: desc,
    relativePath: relativePath,
  );
}