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:Whether to use
FlutterTextureis only applicable to iOS, macOS, and Windows platforms.FlutterTextureto render video:- true: Use
FlutterTextureto render video. - false: Do not use
FlutterTextureto render video.
- true: Use
- useAndroidSurfaceView
-
Note: AndroidWhether to use Android
SurfaceViewis only applicable to Android platform.SurfaceViewto render video:- true: Use Android
SurfaceViewto render video. - false: Do not use Android
SurfaceViewto render video.
- true: Use Android