mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 17:28:40 +00:00
fix #170
This commit is contained in:
parent
25ccbd0158
commit
68c52a8215
1 changed files with 7 additions and 0 deletions
|
|
@ -365,6 +365,13 @@ class _CameraPreviewViewState extends State<CameraPreviewView> {
|
||||||
sharePreviewIsShown = true;
|
sharePreviewIsShown = true;
|
||||||
});
|
});
|
||||||
XFile? videoPath = await controller?.stopVideoRecording();
|
XFile? videoPath = await controller?.stopVideoRecording();
|
||||||
|
if (videoPath != null) {
|
||||||
|
if (Platform.isAndroid) {
|
||||||
|
// see https://github.com/flutter/flutter/issues/148335
|
||||||
|
await File(videoPath.path).rename("${videoPath.path}.mp4");
|
||||||
|
videoPath = XFile("${videoPath.path}.mp4");
|
||||||
|
}
|
||||||
|
}
|
||||||
await controller?.pausePreview();
|
await controller?.pausePreview();
|
||||||
if (await pushMediaEditor(null, videoPath)) {
|
if (await pushMediaEditor(null, videoPath)) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue