NERtc Unity SDK V.5.4.124
载入中...
搜索中...
未找到
Public 属性 | 所有成员列表
nertc.RtcVideoConfig结构体 参考

Public 属性

RtcVideoProfileType maxProfile
 
uint width
 
uint height
 
RtcVideoCropMode cropMode
 
RtcVideoFramerateType framerate
 
RtcVideoFramerateType minFramerate
 
uint bitrate
 
uint minBitrate
 
RtcDegradationPreference degradationPreference
 
RtcVideoMirrorMode mirrorMode
 
RtcVideoOrientationMode orientationMode
 

详细描述

视频编码属性配置。

类成员变量说明

◆ maxProfile

RtcVideoProfileType nertc.RtcVideoConfig.maxProfile

视频编码的分辨率,用于衡量编码质量。详细信息请参考 #RtcVideoProfileType 。

◆ width

uint nertc.RtcVideoConfig.width

视频编码分辨率,衡量编码质量,以宽 x 高表示。与 maxProfile 属性二选一。
width 表示视频帧在横轴上的像素,即自定义宽。

  • 设置为负数时表示采用 maxProfile 档位。
  • 如果需要自定义分辨率场景,则设置此属性,maxProfile 属性失效。 自定义视频输入 width 和 height 无效,会自动根据 maxProfile 缩放。

◆ height

uint nertc.RtcVideoConfig.height

视频编码分辨率,衡量编码质量,以宽 x 高表示。与 maxProfile 属性二选一。
height 表示视频帧在纵轴上的像素,即自定义高。

  • 设置为负数时表示采用 maxProfile 档位。
  • 如果需要自定义分辨率场景,则设置此属性,maxProfile 属性失效。
    自定义视频输入 width 和 height 无效,会自动根据 maxProfile 缩放。

◆ cropMode

RtcVideoCropMode nertc.RtcVideoConfig.cropMode

视频裁剪模式,宽高比。默认为 kNERtcVideoCropModeDefault。详细信息请参考 #RtcVideoCropMode 。

◆ framerate

RtcVideoFramerateType nertc.RtcVideoConfig.framerate

主流的视频编码的帧率。详细信息请参考 #RtcVideoFramerateType 。默认根据设置的 maxProfile 决定帧率。

  • maxProfile >= STANDARD,frameRate = FRAMERATEFPS30。
  • maxProfile < STANDARD,frameRate = FRAMERATEFPS15。

◆ minFramerate

RtcVideoFramerateType nertc.RtcVideoConfig.minFramerate

视频编码的最小帧率。默认为 0,表示使用默认最小帧率。

◆ bitrate

uint nertc.RtcVideoConfig.bitrate

视频编码码率 kbps,取 0 时使用默认值。

◆ minBitrate

uint nertc.RtcVideoConfig.minBitrate

视频编码的最小码率,单位为 Kbps。您可以根据场景需要,手动设置想要的最小码率,若设置为 0,SDK 将会自行计算处理。

◆ degradationPreference

RtcDegradationPreference nertc.RtcVideoConfig.degradationPreference

带宽受限时的视频编码降级偏好。详细信息请参考 #RtcDegradationPreference 。

◆ mirrorMode

RtcVideoMirrorMode nertc.RtcVideoConfig.mirrorMode

设置本地视频编码的镜像模式,即本地发送视频的镜像模式,只影响远端用户看到的视频画面。

◆ orientationMode

RtcVideoOrientationMode nertc.RtcVideoConfig.orientationMode

设置本地视频编码的方向模式,即本地发送视频的方向模式,只影响远端用户看到的视频画面。


该结构体的文档由以下文件生成: