Exemplo n.º 1
0
 void OnJoinSuccessHandler2(int id)
 {
     Debug.Log("client2  OnJoinSuccess --- id = " + id);
     rtmCallEventHandler = new RtmCallEventHandler();
     rtmCallEventHandler.OnLocalInvitationReceivedByPeer = OnLocalInvitationReceivedByPeerHandler;
     rtmCallEventHandler.OnRemoteInvitationReceived      = OnRemoteInvitationReceivedHandler;
     rtmCallManager  = rtmClient.GetRtmCallManager(rtmCallEventHandler);
     localInvitation = rtmCallManager.CreateLocalCallInvitation("222");
     rtmCallManager.SendLocalInvitation(localInvitation);
     localInvitation.SetChannelId("1212");
     localInvitation.SetContent("23232");
 }
Exemplo n.º 2
0
        public void InvitePeer()
        {
            string peerUid = peerUserBox.text;

            if (string.IsNullOrEmpty(peerUid))
            {
                return;
            }
            // Creates LocalInvitation
            LocalInvitation invitation = callManager.CreateLocalCallInvitation(peerUid);

            invitation.SetChannelId(ChannelName);
            invitation.SetContent("Calling You...hello");
            // Sends call invitation
            int rc = callManager.SendLocalInvitation(invitation);

            Debug.Log("Send invitation to " + peerUid + " rc = " + rc);
        }