UZVideoConfiguration

@interface UZVideoConfiguration : NSObject<NSCoding, NSCopying>

/// Default video configuration
+ (instancetype)defaultConfiguration;
/// Video configuration (quality)
+ (instancetype)defaultConfigurationForQuality:(UZVideoQuality)videoQuality;

/// Video configuration (quality & whether it is landscape)
+ (instancetype)defaultConfigurationForQuality:(UZVideoQuality)videoQuality outputImageOrientation:(UIInterfaceOrientation)outputImageOrientation;
+ (instancetype)defaultConfigurationForQuality:(UZVideoQuality)videoQuality outputImageOrientation:(UIInterfaceOrientation)outputImageOrientation encode:(BOOL)encode;

#pragma mark - Attribute
///=============================================================================
/// @name Attribute
///=============================================================================
/// Video resolution,The width and height must be set to a multiple of 2,Otherwise, green edges may appear during decoding and playback(this one videoSizeRespectingAspectRatio Set to YES may change)
@property (nonatomic, assign) CGSize videoSize;

/// Whether the output image is proportional, the default is NO
@property (nonatomic, assign) BOOL videoSizeRespectingAspectRatio;

/// Video output direction
@property (nonatomic, assign) UIInterfaceOrientation outputImageOrientation;

/// Automatic rotation (only left to right portrait to portraitUpsideDown is supported here)
@property (nonatomic, assign) BOOL autorotate;

/// The frame rate of the video, which is fps
@property (nonatomic, assign) NSUInteger videoFrameRate;

/// The maximum frame rate of the video,which is fps
@property (nonatomic, assign) NSUInteger videoMaxFrameRate;

///Video minimum frame rate,which is fps
@property (nonatomic, assign) NSUInteger videoMinFrameRate;

/// The maximum key frame interval can be set to twice the fps, affecting the gop size
@property (nonatomic, assign) NSUInteger videoMaxKeyframeInterval;

/// The bit rate of the video, the unit is bps
@property (nonatomic, assign) NSUInteger videoBitRate;

///The maximum bit rate of the video, the unit is bps
@property (nonatomic, assign) NSUInteger videoMaxBitRate;

/// The minimum bit rate of the video, the unit is bps
@property (nonatomic, assign) NSUInteger videoMinBitRate;

/// Resolution
@property (nonatomic, assign) UZVideoSessionPreset sessionPreset;

/// ≈sde3 resolution
@property (nonatomic, assign, readonly) NSString *avSessionPreset;

/// Is it horizontal
@property (nonatomic, assign, readonly) BOOL landscape;

@end

Undocumented

Attribute

  • =============================================================================

    ============================================================================= Video resolution,The width and height must be set to a multiple of 2,Otherwise, green edges may appear during decoding and playback(this one videoSizeRespectingAspectRatio Set to YES may change)

    Declaration

    Objective-C

    @property (nonatomic) CGSize videoSize;
  • Whether the output image is proportional, the default is NO

    Declaration

    Objective-C

    @property (nonatomic) BOOL videoSizeRespectingAspectRatio;
  • Video output direction

    Declaration

    Objective-C

    @property (nonatomic) int outputImageOrientation;
  • Automatic rotation (only left to right portrait to portraitUpsideDown is supported here)

    Declaration

    Objective-C

    @property (nonatomic) BOOL autorotate;
  • The frame rate of the video, which is fps

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger videoFrameRate;
  • The maximum frame rate of the video,which is fps

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger videoMaxFrameRate;
  • Video minimum frame rate,which is fps

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger videoMinFrameRate;
  • The maximum key frame interval can be set to twice the fps, affecting the gop size

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger videoMaxKeyframeInterval;
  • The bit rate of the video, the unit is bps

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger videoBitRate;
  • The maximum bit rate of the video, the unit is bps

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger videoMaxBitRate;
  • The minimum bit rate of the video, the unit is bps

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger videoMinBitRate;
  • Resolution

    Declaration

    Objective-C

    @property (nonatomic) UZVideoSessionPreset sessionPreset;
  • ≈sde3 resolution

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *avSessionPreset;
  • Is it horizontal

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL landscape;