π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Clean up unused variables in trimVideo method
Prateek Sunal86749ba9ea84
diff --git a/mobile/packages/native_video_editor/ios/Classes/NativeVideoEditorPlugin.swift b/mobile/packages/native_video_editor/ios/Classes/NativeVideoEditorPlugin.swiftindex 246d0feea4..6b2c903c59 100644--- a/mobile/packages/native_video_editor/ios/Classes/NativeVideoEditorPlugin.swift+++ b/mobile/packages/native_video_editor/ios/Classes/NativeVideoEditorPlugin.swift@@ -89,14 +89,10 @@ public class NativeVideoEditorPlugin: NSObject, FlutterPlugin {let timeRange = CMTimeRange(start: startTime, end: endTime)// Check if video has metadata rotation- var needsReEncoding = false- var videoComposition: AVMutableVideoComposition?-if let videoTrack = asset.tracks(withMediaType: .video).first {let preferredTransform = videoTrack.preferredTransform// Check if the transform is not identity (has rotation/orientation)if !preferredTransform.isIdentity {- needsReEncoding = true// Create composition to apply the preferred transformlet composition = AVMutableComposition()@@ -152,8 +148,6 @@ public class NativeVideoEditorPlugin: NSObject, FlutterPlugin {instruction.layerInstructions = [layerInstruction]videoComp.instructions = [instruction]- videoComposition = videoComp-// Use composition for exportlet presetName = AVAssetExportPresetHighestQualityguard let exportSession = AVAssetExportSession(asset: composition, presetName: presetName) else {@@ -162,7 +156,7 @@ public class NativeVideoEditorPlugin: NSObject, FlutterPlugin {}currentExportSession = exportSession- exportSession.videoComposition = videoComposition+ exportSession.videoComposition = videoCompexportSession.outputURL = URL(fileURLWithPath: outputPath)exportSession.outputFileType = .mp4exportSession.shouldOptimizeForNetworkUse = true