fozu
on
Nov 7, 20212021-11-07T00:00:00+08:00
Updated
Apr 10, 20232023-04-10T14:35:37+08:00
1 min read
typedef enum
{
TGMediaVideoConversionPresetCompressedDefault,
TGMediaVideoConversionPresetCompressedVeryLow,
TGMediaVideoConversionPresetCompressedLow,
TGMediaVideoConversionPresetCompressedMedium,
TGMediaVideoConversionPresetCompressedHigh,
TGMediaVideoConversionPresetCompressedVeryHigh,
TGMediaVideoConversionPresetAnimation,
TGMediaVideoConversionPresetVideoMessage
} TGMediaVideoConversionPreset;
+ (CGSize)maximumSizeForPreset:(TGMediaVideoConversionPreset)preset;
+ (NSDictionary *)videoSettingsForPreset:(TGMediaVideoConversionPreset)preset dimensions:(CGSize)dimensions;
+ (NSDictionary *)audioSettingsForPreset:(TGMediaVideoConversionPreset)preset;
@property (nonatomic, readonly) NSURL *fileURL;
@property (nonatomic, readonly) NSUInteger fileSize;
@property (nonatomic, readonly) NSTimeInterval duration;
@property (nonatomic, readonly) CGSize dimensions;
@property (nonatomic, readonly) UIImage *coverImage;
@property (nonatomic, readonly) id liveUploadData;
AVCaptureSession.Preset