LVAVConfig Class Reference

Inherits from NSObject
Declared in LVRTCEngineDefines.h

Overview

音视频参数配置

  videoEncodeResolution

视频编码输出分辨率

@property (assign) CGSize videoEncodeResolution

Declared In

LVRTCEngineDefines.h

  videoCaptureResolution

视频采集分辨率

@property (assign) CGSize videoCaptureResolution

Declared In

LVRTCEngineDefines.h

  fps

视频帧率

@property (assign) int fps

Declared In

LVRTCEngineDefines.h

  bitrate

视频最大码率, 单位 bps

@property (assign) int bitrate

Declared In

LVRTCEngineDefines.h

  min_bitrate

视频最小码率 ,单位 bps

@property (assign) int min_bitrate

Declared In

LVRTCEngineDefines.h

  videoDegradationPreference

视频降级策略,默认为维持分辨率大小不变(MAINTAIN_RESOLUTION)

@property (assign) LVVideoDegradationPreference videoDegradationPreference

Declared In

LVRTCEngineDefines.h

– initWithVideoProfile:

使用 SDK 内置的分辨率、帧率和码率初始化 avConfig 对象

- (instancetype)initWithVideoProfile:(LVRTCVideoProfile)profile

Parameters

profile

内置视频编码和采集参数

Declared In

LVRTCEngineDefines.h