VideoViewControllerBase

A AgoraVideoView controller for rendering local and remote video.

abstract class VideoViewControllerBase {
  RtcEngine get rtcEngine;
  VideoCanvas get canvas;
  RtcConnection? get connection;
  bool get useFlutterTexture;
  bool get useAndroidSurfaceView;
  Future<void> dispose();
}
On different platforms, the default view corresponding to this class is different:

Attributes

rtcEngine
RtcEngine.
canvas
The local video view and settings. See VideoCanvas.
connection
The connection information. See RtcConnection.
useFlutterTexture
Whether to use FlutterTexture to render video:
  • true: Use FlutterTexture to render video.
  • false: Do not use FlutterTexture to render video.
Note: FlutterTexture applies to iOS, macOS and Windows platforms.
useAndroidSurfaceView
Whether to use Android SurfaceView to render video:
  • true: Use Android SurfaceView to render video.
  • false: Do not use Android SurfaceView to render video.
Note: Android SurfaceView applies to Android platform only.