videoResolutionMode property

TRTCVideoResolutionMode videoResolutionMode
getter/setter pair
  • Field description: resolution mode (landscape/portrait)
  • Recommended value: for mobile live streaming, Portrait is recommended; for Windows and macOS, Landscape is recommended.
  • Note: if 640x360 resolution is selected for videoResolution and Portrait is selected for resMode, then the final output resolution after encoding will be 360x640.
  • Default value: TRTCVideoResolutionMode.portrait

Implementation

TRTCVideoResolutionMode videoResolutionMode;