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
PortraitforresMode. - For mobile live streaming, we recommend you select a resolution of 540x960 and select
PortraitforresMode. - For Windows and macOS, we recommend you select a resolution of 640x360 or above and select
LandscapeforresMode.
- For video call, we recommend you select a resolution of 360x640 or below and select
- Note
TRTCVideoResolutionsupports only the landscape resolution by default, such as 640x360.- To use a portrait resolution, please specify
resModeasPortrait; for example, when used together withPortrait, 640x360 will become 360x640.
- Default value: TRTCVideoResolution.res_480_360
Implementation
TRTCVideoResolution videoResolution;