getMixAudioVideoCameraStateNotifier method

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

Implementation

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