VideoViewController class

The controller for AgoraVideoView, used to render local and remote video.

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.

Implemented types

Properties

canvas → VideoCanvas
Local video display properties. See VideoCanvas.
final
connection → RtcConnection
Connection information. See RtcConnection.
final
hashCode → int
The hash code for this object.
no setterinherited
resolvedTextureVideoSourceType → VideoSourceType
no setterinherited
rtcEngine → RtcEngine
RtcEngine.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
useAndroidSurfaceView → bool
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.
final
useFlutterTexture → bool
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.
final

Methods

addPlatformRenderRef(int platformViewId) → Future<void>
inherited
createTextureRender(int uid, RtcConnection? connection, int videoSourceType, int videoViewSetupMode) → Future<int>
inherited
dePlatformRenderRef(int platformViewId) → Future<void>
inherited
dispose() → Future<void>
@nodoc
inherited
disposeRenderInternal() → Future<void>
inherited
getPlatformViewId() → int
inherited
getTextureId() → int
inherited
getVideoSourceType() → int
getViewHandle() → int
inherited
initializeRender() → Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setupView(int platformViewId, int nativeViewPtr) → Future<void>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited