VideoViewControllerBase

The controller for AgoraVideoView, used to render 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 varies:
  • Android: https://developer.android.com/reference/android/view/TextureView. If you want to use SurfaceView, set the useAndroidSurfaceView property to true.
  • iOS: UIView. If you want to use FlutterTexture, set the useFlutterTexture property to true.
  • macOS and Windows: FlutterTexture.

Properties

rtcEngine
RtcEngine.
canvas
Local video display properties. See VideoCanvas.
connection
Connection information. See RtcConnection.
useFlutterTexture
Note: FlutterTexture is only available on 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 available on 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.