onUserStopAudioCapture method
@detail callback @author dixing @brief Users in the room call stopAudioCapture{@link #RTCEngine#stopAudioCapture} when audio capture is turned off, other users in the room will receive this callback. @param streamId Stream ID @param streamInfo Stream information, see StreamInfo{@link #StreamInfo}
Implementation
FutureOr<void> onUserStopAudioCapture(
dynamic streamId, dynamic streamInfo) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler).onUserStopAudioCapture?.call(
streamId.toString(),
packObject(
streamInfo,
() => StreamInfo.fromMap(StreamInfo.deepPackedMapValues(
StreamInfo.mapMemberToConstructorParams(streamInfo)))));
}