Byn.Unity.Examples.MinimalCall.SetupReceiver C# (CSharp) Method

SetupReceiver() private method

private SetupReceiver ( ) : void
return void
        private void SetupReceiver()
        {
            //STEP2: Setup and create the receiver call
            Debug.Log("receiver setup");

            //receiver doesn't use video and audio
            MediaConfig mediaConf1 = new MediaConfig();
            mediaConf1.Video = false;
            mediaConf1.Audio = false;

            //this creates the receiver 
            receiver = UnityCallFactory.Instance.Create(netConf);

            //register our event handler. This is used to control all
            //further interaction with the call object later
            receiver.CallEvent += Receiver_CallEvent;
            //Ask for permission to access the media
            //(will always work as both is set to false)
            //See Receiver_CallEvent for next step
            receiver.Configure(mediaConf1);
        }