VideoViewController class

A AgoraVideoView controller for rendering local and remote video.

On different platforms, the default view corresponding to this class is different: Android:. If you want to use, set the useAndroidSurfaceView property to true. iOS:. If you want to use Flutter Texture, set the useFlutterTexture property to true. macOS and Windows:.

Implemented types

Properties

canvas VideoCanvas
The local video view and settings. See VideoCanvas.
final
connection RtcConnection
The connection information. See RtcConnection.
final
hashCode int
The hash code for this object.
no setterinherited
isInitialzed bool
no setterinherited
rtcEngine RtcEngine
RtcEngine.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldHandlerRenderMode bool
no setterinherited
useAndroidSurfaceView bool
Whether to use Android SurfaceView to render video: true : Use Android SurfaceView to render video. false : Do not use Android SurfaceView to render video. Android SurfaceView applies to Android platform only.
final
useFlutterTexture bool
Whether to use FlutterTexture to render video: true : Use FlutterTexture to render video. false : Do not use FlutterTexture to render video. FlutterTexture applies to iOS, macOS and Windows platforms.
final

Methods

addInitializedCompletedListener(VoidCallback listener) → void
inherited
createTextureRender(int uid, String channelId, int videoSourceType, int videoViewSetupMode) Future<int>
inherited
dePlatformRenderRef(int platformViewId) Future<void>
inherited
dispose() Future<void>
@nodoc
inherited
disposeRender() Future<void>
inherited
disposeRenderInternal() Future<void>
inherited
getTextureId() int
inherited
getVideoSourceType() int
override
initializeRender() Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeInitializedCompletedListener(VoidCallback listener) → void
inherited
setupView(int nativeViewPtr) Future<void>
inherited
toString() String
A string representation of this object.
inherited
updateController(VideoViewControllerBase oldController) → void
inherited

Operators

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