NECallkitTextureView class

基于 Texture 的视频视图

自动绑定本地或远端视频流,无需手动调用 attach 方法。

Inheritance

Constructors

NECallkitTextureView({Key? key, int? uid, NECallkitVideoRendererController? controller, BoxFit fitType = BoxFit.cover, Color backgroundColor = const Color(0xFF292933), WidgetBuilder? placeholderBuilder, NECallkitVideoRendererEventListener? rendererEventListener})
通用构造函数
const
NECallkitTextureView.local({Key? key, NECallkitVideoRendererController? controller, BoxFit fitType = BoxFit.cover, Color backgroundColor = const Color(0xFF292933), WidgetBuilder? placeholderBuilder, NECallkitVideoRendererEventListener? rendererEventListener})
创建本地视频视图(自动绑定本地摄像头)
const
NECallkitTextureView.remote({Key? key, required int uid, NECallkitVideoRendererController? controller, BoxFit fitType = BoxFit.cover, Color backgroundColor = const Color(0xFF292933), WidgetBuilder? placeholderBuilder, NECallkitVideoRendererEventListener? rendererEventListener})
创建远端视频视图(自动绑定指定 uid 的远端视频)
const

Properties

backgroundColor Color
背景色
final
controller NECallkitVideoRendererController?
渲染器控制器(可选)
final
fitType BoxFit
视频缩放模式
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
placeholderBuilder WidgetBuilder?
占位 Widget 构建器(无视频帧时显示)
final
rendererEventListener NECallkitVideoRendererEventListener?
渲染事件回调(可选)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid int?
用户 RTC UID
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<NECallkitTextureView>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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