예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            // 建立H323Class物件
            h323 = new H323Class();

            cboInput.Items.Add(h323.RxSound); // 語音輸入裝置
            cboInput.SelectedIndex = 0;

            cboOutput.Items.Add(h323.TxSound); // 語音輸出裝置
            cboOutput.SelectedIndex = 0;

            h323.EnumSoundRx();           // 檢查語音輸入裝置
            h323.EnumSoundTx();           // 檢查語音輸出裝置

            h323.AutoAnswer       = true; // 自動答話
            h323.SilenceDetection = true; // 靜音偵測

            btnHangup.Enabled = false;
            btnAnswer.Enabled = false;
        }
예제 #2
0
        //, Image _remoteImage)  //calling
        //Image remoteImage;
        public VoiceForm(string _localIP, string _remoteSID)
        {
            InitializeComponent();

            localIP = _localIP;
            remoteIP = "";
            remoteSID = _remoteSID;
            //remoteImage = global::chatRoomClient.Properties.Resources.defaultImage;

            //remoteImageBox.BackgroundImage = remoteImage;
            label1.Text = remoteSID;

            h323 = new H323Class();

            h323.EnumSoundRx(); // 檢查語音輸入裝置
            h323.EnumSoundTx(); // 檢查語音輸出裝置
            h323.AutoAnswer = true;         // 自動答話
            h323.SilenceDetection = true;   // 靜音偵測

            h323.RemoteHost = localIP;
            h323.Listen();
        }