fillMode property Null safety

int fillMode
read / write

Field description: image rendering mode

Note Fill (the image may be stretched or cropped) or fit (there may be black color in unmatched areas). Default value: TRTCCloudDef.TRTC_VIDEO_RENDER_MODE_FILL

  • TRTCCloudDef.TRTC_VIDEO_RENDER_MODE_FILL: the entire screen will be covered by the image, where parts that exceed the screen will be cropped, and the displayed image may be incomplete.
  • TRTCCloudDef.TRTC_VIDEO_RENDER_MODE_FIT: the long side of the image will fit the screen, while the short side will be proportionally scaled with unmatched areas being filled with black color blocks. The displayed image is complete.

Implementation

int fillMode;