IRemoteEncodedVideoFrameObserver class
@detail callback
@brief 远端编码后视频数据监测器
注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。
Constructors
-
IRemoteEncodedVideoFrameObserver({FutureOr<
void> onRemoteEncodedVideoFrame(String streamId)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onRemoteEncodedVideoFrame
↔ FutureOr<
void> Function(String streamId)? -
@detail callback
@author wangzhanqiang
@brief 调用 registerRemoteEncodedVideoFrameObserver{@link #RTCEngine#registerRemoteEncodedVideoFrameObserver} 后,SDK 监测到远端编码后视频数据时,触发该回调
@param streamId 收到的远端流 ID
@param streamInfo 收到的远端流信息,参看 StreamInfo{@link #StreamInfo}
@param encodedVideoFrame 收到的远端视频帧信息,参看 RTCEncodedVideoFrame{@link #RTCEncodedVideoFrame}
@note encodedVideoFrame 只在回调函数作用域内有效,不要存储该参数并在其它函数内访问该参数的内存数据
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited