live_photos

Last updated:

0 purchases

live_photos Image
live_photos Images
Add to Cart

Description:

live photos

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>
copied to clipboard
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");
}
});
copied to clipboard
Available format #
For now, the plugin can convert only the mp4 video.

mp4

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.