onUserStopVideoCapture method
@detail callback
@author liuyangyang
@brief 房间内的可见用户调用 stopVideoCapture{@link #RTCEngine#stopVideoCapture} 关闭内部视频采集时,房间内其他用户会收到此回调。
若发布视频数据前未开启采集,房间内所有可见用户会收到此回调。
@param streamId 视频流 ID
@param streamInfo 视频流信息,详见 StreamInfo{@link #StreamInfo}。
Implementation
FutureOr<void> onUserStopVideoCapture(
dynamic streamId, dynamic streamInfo) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler).onUserStopVideoCapture?.call(
streamId.toString(),
packObject(
streamInfo,
() => StreamInfo.fromMap(StreamInfo.deepPackedMapValues(
StreamInfo.mapMemberToConstructorParams(streamInfo)))));
}