setLocalRenderMode abstract method

Future<void> setLocalRenderMode({
  1. required RenderModeType renderMode,
  2. VideoMirrorModeType mirrorMode = VideoMirrorModeType.videoMirrorModeAuto,
})

Updates the local view display mode.

After initializing the local user view, you can call this method to update the rendering and mirror mode of the local user view. This method only affects the video seen by the local user and does not affect the published video. This method only takes effect for the first camera (primaryCameraSource). In scenarios with custom video capture or other types of video sources, you need to use the setupLocalVideo method instead.

  • renderMode Local view display mode. See RenderModeType.
  • mirrorMode Mirror mode for the local view. See VideoMirrorModeType. If you use the front camera, the local user view mirror mode is enabled by default; if you use the rear camera, the mirror mode is disabled by default.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.

Implementation

Future<void> setLocalRenderMode(
    {required RenderModeType renderMode,
    VideoMirrorModeType mirrorMode =
        VideoMirrorModeType.videoMirrorModeAuto});