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
rtcEngine → RtcEngine
RtcEngine.
final
runtimeType → Type
A representation of the runtime type of the object.
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

addPlatformRenderRef(int platformViewId) → Future<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
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