mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-05-25 02:32:11 +00:00
add missing file check
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
This commit is contained in:
parent
d8a3c4a4d7
commit
8898395d72
1 changed files with 2 additions and 1 deletions
|
|
@ -77,7 +77,8 @@ Future<void> compressAndOverlayVideo(MediaFileService media) async {
|
||||||
VideoSegment(video: EditorVideo.file(media.originalPath)),
|
VideoSegment(video: EditorVideo.file(media.originalPath)),
|
||||||
],
|
],
|
||||||
imageLayers: [
|
imageLayers: [
|
||||||
ImageLayer(image: EditorLayerImage.file(media.overlayImagePath)),
|
if (media.overlayImagePath.existsSync())
|
||||||
|
ImageLayer(image: EditorLayerImage.file(media.overlayImagePath)),
|
||||||
],
|
],
|
||||||
enableAudio: !media.removeAudio,
|
enableAudio: !media.removeAudio,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue