videoResolution property
getter/setter pair
- Field description: video resolution
- Recommended value
- For video call, we recommend you select a resolution of 360x640 or below and select
Portrait
forresMode
. - For mobile live streaming, we recommend you select a resolution of 540x960 and select
Portrait
forresMode
. - For Windows and macOS, we recommend you select a resolution of 640x360 or above and select
Landscape
forresMode
.
- For video call, we recommend you select a resolution of 360x640 or below and select
- Note
TRTCVideoResolution
supports only the landscape resolution by default, such as 640x360.- To use a portrait resolution, please specify
resMode
asPortrait
; for example, when used together withPortrait
, 640x360 will become 360x640.
- Default value: TRTCVideoResolution.res_480_360
Implementation
TRTCVideoResolution videoResolution;