rtc_local_view: TextureView

TextureView class for rendering local video. Extends from the rtc_render_view: RtcTextureView class.

class TextureView extends RtcTextureView {
                  const TextureView({
                    Key? key,
                    String? channelId,
                    renderMode = VideoRenderMode.Hidden,
                    mirrorMode = VideoMirrorMode.Auto,
                    PlatformViewCreatedCallback? onPlatformViewCreated,
                    Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
                    useFlutterTexture = true,
                  }) : super(
                          key: key,
                          uid: 0,
                          channelId: channelId,
                          renderMode: renderMode,
                          mirrorMode: mirrorMode,
                          onPlatformViewCreated: onPlatformViewCreated,
                          gestureRecognizers: gestureRecognizers,
                          useFlutterTexture: useFlutterTexture,
                        );
                
                  const TextureView.screenShare({
                    Key? key,
                    renderMode = VideoRenderMode.Hidden,
                    mirrorMode = VideoMirrorMode.Disabled,
                    PlatformViewCreatedCallback? onPlatformViewCreated,
                    Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
                    useFlutterTexture = true,
                  }) : super(
                          key: key,
                          uid: 0,
                          renderMode: renderMode,
                          mirrorMode: mirrorMode,
                          onPlatformViewCreated: onPlatformViewCreated,
                          gestureRecognizers: gestureRecognizers,
                          useFlutterTexture: useFlutterTexture,
                          subProcess: true,
                        );
                }
This class has the following corresponding classes:

Parameters

key
Specifiers of Widget, Element, and SemanticsNode. For details, see Flutter's official documentation for a description of the key object.
channelId
The channel name. This parameter signifies the channel in which users engage in real-time audio and video interaction. Under the premise of the same App ID, users who fill in the same channel ID enter the same channel for audio and video interaction. The string length must be less than 64 bytes. Supported characters:
  • The 26 lowercase English letters: a to z.
  • The 26 uppercase English letters: A to Z.
  • The 10 numeric characters: 0 to 9.
  • Space
  • "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ","
renderMode
The rendering mode of the video. See VideoRenderMode.
mirrorMode
The mirror mode of the view. See VideoMirrorMode.
onPlatformViewCreated
This event is triggered when a platform view is created.
gestureRecognizers
The Gesture object.
useFlutterTexture
Whether to use FlutterTexture to render video.
subProcess
Whether to create a subprocess.

rtc_local_view: TextureView

Constructor for the SurfaceView class for rendering local video.

const TextureView({
                    Key? key,
                    String? channelId,
                    renderMode = VideoRenderMode.Hidden,
                    mirrorMode = VideoMirrorMode.Auto,
                    PlatformViewCreatedCallback? onPlatformViewCreated,
                    Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
                    useFlutterTexture = true,
                  }) : super(
                          key: key,
                          uid: 0,
                          channelId: channelId,
                          renderMode: renderMode,
                          mirrorMode: mirrorMode,
                          onPlatformViewCreated: onPlatformViewCreated,
                          gestureRecognizers: gestureRecognizers,
                          useFlutterTexture: useFlutterTexture,
                        );

Parameters

key
Specifiers of Widget, Element, and SemanticsNode. For details, see Flutter's official documentation for a description of the key object.
channelId
The channel name. This parameter signifies the channel in which users engage in real-time audio and video interaction. Under the premise of the same App ID, users who fill in the same channel ID enter the same channel for audio and video interaction. The string length must be less than 64 bytes. Supported characters:
  • The 26 lowercase English letters: a to z.
  • The 26 uppercase English letters: A to Z.
  • The 10 numeric characters: 0 to 9.
  • Space
  • "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ","
renderMode
The rendering mode of the video. See VideoRenderMode.
mirrorMode
The mirror mode of the view. See VideoMirrorMode.
onPlatformViewCreated
This event is triggered when a platform view is created.
gestureRecognizers
The Gesture object.
useFlutterTexture
Whether to render the video using FlutterTexture.
subProcess
Whether to create a subprocess.

rtc_local_view: TextureView.screenShare

Constructor of the TextureView class for rendering local screen sharing video.

const TextureView.screenShare({
                    Key? key,
                    renderMode = VideoRenderMode.Hidden,
                    mirrorMode = VideoMirrorMode.Disabled,
                    PlatformViewCreatedCallback? onPlatformViewCreated,
                    Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
                    useFlutterTexture = true,
                  }) : super(
                          key: key,
                          uid: 0,
                          renderMode: renderMode,
                          mirrorMode: mirrorMode,
                          onPlatformViewCreated: onPlatformViewCreated,
                          gestureRecognizers: gestureRecognizers,
                          useFlutterTexture: useFlutterTexture,
                          subProcess: true,
                        );

Parameters

key
Specifiers of Widget, Element, and SemanticsNode. For details, see Flutter's official documentation for a description of the key object.
renderMode
The rendering mode of the video. See VideoRenderMode.
mirrorMode
The mirror mode of the view. See VideoMirrorMode.
onPlatformViewCreated
This event is triggered when a platform view is created.
gestureRecognizers
The Gesture object.
useFlutterTexture
Whether to render the video using FlutterTexture.