VideoViewControllerConstructor

Constructor of the VideoViewController class used to render local video.

VideoViewController({
    required this.rtcEngine,
    required this.canvas,
    this.useFlutterTexture = false,
    this.useAndroidSurfaceView = false,
  }) : connection = const RtcConnection();

Parameters

rtcEngine
RtcEngine.
canvas
Display properties of the local video. See VideoCanvas.
useFlutterTexture
Note: FlutterTexture is only applicable to iOS, macOS, and Windows platforms.
Whether to use FlutterTexture to render video:
  • true: Use FlutterTexture to render video.
  • false: Do not use FlutterTexture to render video.
useAndroidSurfaceView
Note: Android SurfaceView is only applicable to Android platform.
Whether to use Android SurfaceView to render video:
  • true: Use Android SurfaceView to render video.
  • false: Do not use Android SurfaceView to render video.