Skip to content

Commit

Permalink
Changed presetName for AVAssetExportSession to AVAssetExportPresetHig…
Browse files Browse the repository at this point in the history
…hestQuality in formatAsMp4
  • Loading branch information
petercvek committed Sep 28, 2023
1 parent 1c7d59c commit fbea8e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/ImagePickerManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ -(NSMutableDictionary *)mapVideoToAsset:(NSURL *)url phAsset:(PHAsset * _Nullabl

[[NSFileManager defaultManager] removeItemAtURL:outputURL error:nil];
AVURLAsset *asset = [AVURLAsset URLAssetWithURL:videoDestinationURL options:nil];
AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:asset presetName:AVAssetExportPresetPassthrough];
AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:asset presetName:AVAssetExportPresetHighestQuality];

exportSession.outputURL = outputURL;
exportSession.outputFileType = AVFileTypeMPEG4;
Expand Down

0 comments on commit fbea8e8

Please sign in to comment.