live_photos 0.2.0

Flutter iOS

This generates LivePhotos which is a feature to be able to use in only iOS from video url and it's downloaded to Camera Roll.

live_photos #

Generate LivePhotos from video url and it's downloaded to Camera Roll.

This package is available for only iOS.

Usage #

To use this plugin, add live_photos as a dependency in your pubspec.yaml file.

iOS #

Make sure you add the following key to Info.plist for iOS.

<key>NSPhotoLibraryAddUsageDescription</key>
<string>To read/save photos and videos.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>To read/save photos and videos.</string>

Example #

import 'package:live_photos/live_photos.dart';

LivePhotos.generate(
  videoURL: "https://img.gifmagazine.net/gifmagazine/images/3870471/original.mp4",
).then((status) {
  if (status) {
    print("Success to generate LivePhotos");
  } else {
    print("Failed to convert");
  }
});

Available format #

For now, the plugin can convert only the mp4 video.

  • mp4

If you want other formats, feel free to send Pull Request.

0
likes
80
pub points
38%
popularity

This generates LivePhotos which is a feature to be able to use in only iOS from video url and it's downloaded to Camera Roll.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

nakasaka@gifmagazine.co.jp

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on live_photos