ParticipantUpdatedNotifier 

    Namespace: SynicSugar.RTC

    public ParticipantUpdatedNotifier ParticipantUpdatedNotifier

    Description 

    Events when an audio state is changed.
    We register events to change speaking or not on GUI.

    Event 

    APIdescription
    OnStartSpeakingInvoke on ParticipantUpdated
    OnStopSpeakingInvoke on ParticipantUpdated
    OnStartTargetSpeakingInvoke on ParticipantUpdated with UserId as arg
    OnStopTargetSpeakingInvoke on ParticipantUpdated with UserId as arg

    Function 

    APIdescription
    RegisterSet events
    using SynicSugar.P2P;
    using SynicSugar.RTC;
    using UnityEngine;
    
    public class VCSample : MonoBehaviour {
        void Start(){
            RTCManager.Instance.ParticipantUpdatedNotifier.Register(() => OnStartSpeaking(), () => OnStopSpeaking());
        }
        void OnStartSpeaking(){
            Debug.Log($"{RTCManager.Instance.LastStateUpdatedUserId.ToString()} is Speaking");
        }
        void OnStopSpeaking(){
            Debug.Log($"{RTCManager.Instance.LastStateUpdatedUserId.ToString()} is Mute");
        }
    }