NECallkitVideoRenderer class abstract

视频渲染器接口

用于渲染本地或远端视频流,基于 Flutter Texture 实现。

Inheritance

Constructors

NECallkitVideoRenderer()

Properties

canRender bool
是否可以渲染(有有效尺寸且已绑定视频源)
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
rendererEventListener NECallkitVideoRendererEventListener?
渲染事件监听器(字段形式,可在使用时设置)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textureId int?
获取纹理 ID
no setter
value NECallkitVideoValue
The current value stored in this notifier.
getter/setter pairinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
attachToLocalVideo() Future<int>
绑定本地视频
attachToRemoteVideo(int uid) Future<int>
绑定远端视频
dispose() Future<void>
释放渲染器
override
getMirrored() bool
获取镜像状态
initialize() Future<void>
初始化渲染器
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setMirror(bool mirror) Future<int>
设置镜像
toString() String
A string representation of this object.
inherited

Operators

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