RTCManager 

    Namespace: SynicSugar.RTC

    Description 

    Manage around RTC on session.
    This script is Mono's Singleton attached to NetworkManager. To generate NetworkManager, right-click on the Hierarchy and click SynicSugar/NetworkManager NetworkManager has DontDestroy, so NetworkManager will not be destroyed by scene transitions.

    Properity 

    APIdescription
    ParticipantUpdatedNotifierNotification whether a member is speaking
    UseOpenVCOpenVC or PushToTalk
    KeyToPushToTalkthe key or keycode for PushToTalk
    LastStateUpdatedUserIdID of the user whose status was last updated
    TargetOutputedVolumeOnLocalOutputed volume on this local of target
    IsTargetMutedOnLocalTarget state is mute or not
    IsTargetHardMutedTarget state is hard mute or not

    Function 

    APIdescription
    StartVoiceSendingStarts local user sending voice chat
    StopVoiceSendingStop local user sending voice chat
    ToggleLocalUserSendingSwitch Input setting of Local user sending
    ToggleReceiveingFromTargetSwitch Output setting(Enable or Mute) of receiving from target
    UpdateReceiveingVolumeFromTargetChange the receiving volume on this Session
    HardMuteTargetUserHost mutes target user('s input)
    using SynicSugar.P2P;
    using SynicSugar.RTC;
    using UnityEngine;
    
    public class NetworkSample : MonoBehaviour {
        void Start() {
            //Start ReceivingVC on StartPacketReceiver().
    
            RTCManager.Instance.StartVoiceSending();
        }
        public void BanTarget(UserId target){
            RTCManager.Instance.HardMuteTargetUser(target, true);
        }
    }