void MultiVChatForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            NIM.VChatAPI.End();
            _multiVChatFormGraphics_pb01.Dispose();
            _multiVChatFormGraphics_pb02.Dispose();
            _multiVChatFormGraphics_pb03.Dispose();
            _multiVChatFormGraphics_pb04.Dispose();

            //将音视频通知重新交回给p2p
            MultimediaHandler.InitVChatInfo();
        }
Exemplo n.º 2
0
 private void InitVChat()
 {
     System.Threading.ThreadPool.QueueUserWorkItem((args) =>
     {
         try
         {
             if (_nrtcInit = NIM.VChatAPI.Init(""))
             {
                 _multimediaHandler = new MultimediaHandler(this);
                 MultimediaHandler.InitVChatInfo();
             }
             else
             {
                 MessageBox.Show("NIM VChatAPI init failed!");
             }
         }
         catch (Exception exception)
         {
             System.Diagnostics.Debug.WriteLine(exception.ToString());
         }
     });
 }