setupLocalVideo abstract method
Initializes the local view.
This method initializes the local view and sets the display properties of the local user's video. It only affects the video seen by the local user and does not affect the publishing of the local video. Call this method to bind the display window (view) of the local video stream and set the rendering and mirror mode of the local user view. The binding remains effective after leaving the channel. To stop rendering or unbind, you can call this method and set the view parameter to NULL to stop rendering and clear the rendering cache. In Flutter, you do not need to call this method manually. Use AgoraVideoView to render local and remote views. If you only want to update the rendering or mirror mode of the local user view during a call, use the setLocalRenderMode method.
canvasDisplay properties of the local video. See VideoCanvas.
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. < 0: Failure. See Error Codes for details and resolution suggestions.
Implementation
Future<void> setupLocalVideo(VideoCanvas canvas);