コード例 #1
0
        private static void OnSessionHangupNotify(long channel_id, int code)
        {
            EndDevices();
            if (code == 200)
            {
                Action action = () =>
                {
                    MessageBox.Show("已挂断");

                    MainForm.VideoChatForm vform = MainForm.VideoChatForm.GetInstance();
                    if (vform != null)
                    {
                        vform.Close();
                    }
                };
                _ownerFriendsListForm.Invoke(action);
            }
        }
コード例 #2
0
ファイル: MultimediaHandler.cs プロジェクト: unslur/ShitYun
 private static void OnSessionHangupNotify(long channel_id, int code)
 {
     DemoTrace.WriteLine("OnSessionHangupNotify channel_id:" + channel_id.ToString() + " code:" + code.ToString());
     EndDevices();
     if (code == 200)
     {
         Action action = () =>
         {
             //MessageBox.Show("已挂断");
             SendCommand("e");
             MainForm.VideoChatForm vform = MainForm.VideoChatForm.GetInstance();
             if (vform != null)
             {
                 vform.Close();
             }
         };
         _ownerFriendsListForm.Invoke(action);
     }
 }