onMixedVideoFrame method
@hidden for internal use only @detail callback @author liujingchao @brief Callback with video data after intelligent stream mixing @param taskId Task ID @param VideoFrame Video data frame, see IVideoFrame{@link #IVideoFrame} @note - The interval between callbacks is the same with that between video frames.
Implementation
FutureOr<void> onMixedVideoFrame(dynamic taskId, dynamic videoFrame) async {
if ($instance == null || $instance is! IClientMixedStreamObserver) {
return;
}
return ($instance as IClientMixedStreamObserver)
.onMixedVideoFrame
?.call(taskId.toString(), packObject(videoFrame, () => IVideoFrame()));
}