onMixedVideoFrame$withTaskId method
@hidden for internal use only @detail callback @author liujingchao @brief 端云一体合流视频 YUV 回调 @param videoFrame YUV 合流视频数据帧,参看 ByteRTCVideoFrame{@link #ByteRTCVideoFrame}。 @param taskId 转推直播任务 ID。 @note 收到该回调的周期取决于视频的帧率。
Implementation
FutureOr<void> onMixedVideoFrame$withTaskId(
dynamic videoFrame, dynamic taskId) async {
if ($instance == null || $instance is! IClientMixedStreamObserver) {
return;
}
return ($instance as IClientMixedStreamObserver)
.onMixedVideoFrame
?.call(taskId.toString(), packObject(videoFrame, () => IVideoFrame()));
}