// button reset ล้างข้อมูล private void btn_reset_Click(object sender, RoutedEventArgs e) { if (Sender != null) { Sender.UnlinkAll(); } Sender = null; btn_createOffer.IsEnabled = true; btn_answer.IsEnabled = true; TextBox_offer.Clear(); TextBox_answer.Clear(); TextBox_candidate.Clear(); TextBox_sdp.Clear(); }
// สร้าง Candidate จาก Link peerID ใน Event ของ Conference void Sender_OnLinkCandidate(LinkCandidateArgs p) { TextBox_sdp.AppendText("\n*************** Candidate ***********\n"); TextBox_sdp.AppendText(p.Candidate.ToJson()); }