NERtcCameraCaptureConfig class
摄像头采集配置
如果您需要自定义本地采集的视频尺寸,请先将 preference 设为 NERtcCameraCapturePreference.kManual,再通过 captureWidth 和 captureHeight 设置采集的视频宽度。手动模式下,如果指定的采集宽高小于编码宽高,编码参数会被下调对齐到采集的尺寸范围内。
- Annotations
- 
    - @JsonSerializable.new()
 
Constructors
- NERtcCameraCaptureConfig(NERtcCaptureExtraRotation extraRotation, int captureWidth, int captureHeight)
- 
          
            const
- 
          NERtcCameraCaptureConfig.fromJson(Map<String, dynamic> json)
- 
          
            factory
- NERtcCameraCaptureConfig.manual(int captureWidth, int captureHeight)
Properties
- captureHeight → int
- 
  本地采集的视频高度,单位为 px。
视频编码分辨率以宽 x 高表示,用于设置视频编码分辨率,以衡量编码质量。
  final
- captureWidth → int
- 
  本地采集的视频宽度,单位为 px。
视频编码分辨率以宽 x 高表示,用于设置视频编码分辨率,以衡量编码质量。
  final
- extraRotation → NERtcCaptureExtraRotation
- 
  设置摄像头的额外旋转信息。
NERtcCaptureExtraRotation
  final
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toJson() → Map< String, dynamic> 
- 
  toString() → String 
- 
  A string representation of this object.
  override
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited