live_photos 0.4.0 copy "live_photos: ^0.4.0" to clipboard
live_photos: ^0.4.0 copied to clipboard

PlatformiOS

This generates LivePhotos from video url or local mp4 file and it's downloaded to Camera Roll.

live_photos #

Generate LivePhotos from video url or local mp4 file 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';

// Video URL
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");
  }
});

// Local File
LivePhotos.generate(
  localPath: "<local mp4 file path>"
).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.

5
likes
140
points
118
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This generates LivePhotos from video url or local mp4 file and it's downloaded to Camera Roll.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on live_photos

Packages that implement live_photos