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:
- Android: https://developer.android.com/reference/android/view/TextureView. If you want to use SurfaceView, set the
useAndroidSurfaceViewproperty totrue. - iOS: UIView. If you want to use Flutter Texture, set the
useFlutterTextureproperty totrue. - macOS and Windows: FlutterTexture.
Attributes
- rtcEngine
- RtcEngine.
- canvas
- The local video view and settings. See VideoCanvas.
- connection
- The connection information. See RtcConnection.
- useFlutterTexture
- Whether to use
FlutterTextureto render video:true: UseFlutterTextureto render video.false: Do not useFlutterTextureto render video.
Note:FlutterTextureapplies to iOS, macOS and Windows platforms. - useAndroidSurfaceView
- Whether to use Android
SurfaceViewto render video:true: Use AndroidSurfaceViewto render video.false: Do not use AndroidSurfaceViewto render video.
Note: AndroidSurfaceViewapplies to Android platform only.