getMixAudioVideoMicrophoneStateNotifier method

ValueNotifier<bool> getMixAudioVideoMicrophoneStateNotifier(
  1. String mixerID,
  2. String userID
)

Implementation

ValueNotifier<bool> getMixAudioVideoMicrophoneStateNotifier(
  String mixerID,
  String userID,
) {
  return ZegoUIKitCore
          .shared.coreData.mixerStreamDic[mixerID]?.usersNotifier.value
          .firstWhere((user) => user.id == userID,
              orElse: ZegoUIKitCoreUser.empty)
          .microphone ??
      ValueNotifier(false);
}