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
    IsVoiceChatEnabledIndicates whether the current Lobby has VC enabled
    IsLocalSendingEnabledIndicates whether local sending is enabled
    IsLocalReceivingEnabledIndicates whether local receiving is enabled
    VoiceChatModeVoice chat mode of this Manager
    KeyToPushToTalkthe key or keycode for PushToTalk
    LastStateUpdatedUserIdID of the user whose status was last updated

    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)
    TargetOutputedVolumeOnLocalOutputed volume on this local of target
    TryGetTargetOutputedVolumeOnLocalOutputed volume on this local of target
    IsTargetMutedOnLocalTarget state is mute or not
    TryGetIsTargetMutedOnLocalTarget state is mute or not
    IsTargetHardMutedTarget state is hard mute or not
    TryGetIsTargetHardMutedTarget state is hard mute or not
    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);
        }
    }