VideoViewController
Constructor for 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
- Local video display properties. See VideoCanvas.
- 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.