rtcEngine$onUserStopVideoCapture$info method
FutureOr<void>
rtcEngine$onUserStopVideoCapture$info(
- dynamic engine,
- dynamic streamId,
- dynamic info
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 #ByteRTCEngine#stopVideoCapture}.
If you don't start video capture before you publish video data, all visible user will receive this callback.
@param engine ByteRTCEngine instance
@param streamId ID of the room where the user disables video capture
@param info Stream information. See ByteRTCStreamInfo{@link #ByteRTCStreamInfo}.
Implementation
FutureOr<void> rtcEngine$onUserStopVideoCapture$info(
dynamic engine, dynamic streamId, dynamic info) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler).onUserStopVideoCapture?.call(
streamId.toString(),
packObject(
info,
() => StreamInfo.fromMap(StreamInfo.deepPackedMapValues(
StreamInfo.mapMemberToConstructorParams(info)))));
}