videoResolution property

TRTCVideoResolution videoResolution
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 for resMode.
    • For mobile live streaming, we recommend you select a resolution of 540x960 and select Portrait for resMode.
    • For Windows and macOS, we recommend you select a resolution of 640x360 or above and select Landscape for resMode.
  • Note
    • TRTCVideoResolution supports only the landscape resolution by default, such as 640x360.
    • To use a portrait resolution, please specify resMode as Portrait; for example, when used together with Portrait, 640x360 will become 360x640.
  • Default value: TRTCVideoResolution.res_480_360

Implementation

TRTCVideoResolution videoResolution;