onUserStopVideoCapture method

FutureOr<void> onUserStopVideoCapture(
  1. dynamic streamId,
  2. dynamic streamInfo
)
override

@detail callback @author liuyangyang @brief The remote clients in the room will be informed of the state change via this callback after the visible user stops video capture by calling stopVideoCapture{@link #RTCEngine#stopVideoCapture}.
If you don't start video capture before you publish video data, all visible user will receive this callback. @param streamId Video stream ID @param streamInfo Video stream information, see 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)))));
}