Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: trim-only iOS

Prateek Sunalcdbd9a1532d9
diff --git a/mobile/packages/native_video_editor/ios/Classes/NativeVideoEditorPlugin.swift b/mobile/packages/native_video_editor/ios/Classes/NativeVideoEditorPlugin.swift
index c98e26571b..7d4e6f5dff 100644
--- a/mobile/packages/native_video_editor/ios/Classes/NativeVideoEditorPlugin.swift
+++ b/mobile/packages/native_video_editor/ios/Classes/NativeVideoEditorPlugin.swift
@@ -765,7 +765,7 @@ public class NativeVideoEditorPlugin: NSObject, FlutterPlugin {
exportSession.shouldOptimizeForNetworkUse = true
if !isReEncoded {
- exportSession.timeRange = timeRange
+ exportSession.timeRange = CMTimeRange(start: .zero, duration: composition.duration)
}
startProgressReporting()