Beispiel #1
0
        private void btnCall_Click(object sender, RoutedEventArgs e)
        {
            string myIp         = icServer.GetLocalIp()[0].ToString();
            string ipToCall     = txtIP.Text;
            int    videoPort    = 9990;
            int    audioTcpPort = 17860;
            int    audioUdpPort = 17861;

            if (btnCall.Content.ToString() == "Hang up")
            {
                icClient.Disconnect();
                icClient.ClearImage();
                btnCall.Content = "Call";
                return;
            }
            //place a call to an iConf Server
            //note when using the Call function we have the ability to supply callback parameters
            //which will help the peer connection call us back

            btnCall.Content = "Hang up";
            icClient.Call(ipToCall, videoPort, 0, 0, "test", icServer.CallBackId, myIp, videoPort, audioTcpPort, audioUdpPort, "");
        }
Beispiel #2
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     icc.Disconnect();
     ics.Listen(false, "", 0, 0, 0);
     ics.StopPreview();
 }