private void btnListen_Click(object sender, EventArgs e) { h323.Listen(); btnListen.Enabled = false; btnCall.Enabled = false; btnHangup.Enabled = false; btnAnswer.Enabled = false; }
//, 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(); }
private void button3_Click(object sender, System.EventArgs e) { h323.Listen(); }