Esempio n. 1
0
 private void InitVChatHandler()
 {
     System.Threading.ThreadPool.QueueUserWorkItem((args) =>
     {
         MultimediaHandler.GetInstance().Init(this);
     });
 }
        public MultiVChatForm(string roomId)
        {
            InitializeComponent();
            this._roomId = roomId;

            cm = new System.Windows.Forms.ContextMenu();

            this.Text += "房间号:" + roomId;
            rtb_multichat_info.Text += "欢迎进入房间\n";
            this.tb_roomid.Text      = roomId;
            this.Load       += MultiVChatForm_Load;
            this.FormClosed += MultiVChatForm_FormClosed;
            MultimediaHandler.GetInstance().PeopleStatusHandler += OnMultiChatStatus;
            this.lv_members.Items.Add(NIMDemo.Helper.UserHelper.SelfId, NIMDemo.Helper.UserHelper.SelfId, 0);
        }
 private void InitVChat()
 {
     System.Threading.ThreadPool.QueueUserWorkItem((args) =>
     {
         try
         {
             if (_nrtcInit = NIM.VChatAPI.Init(""))
             {
                 MultimediaHandler.GetInstance().Init(this);
             }
             else
             {
                 MessageBox.Show("NIM VChatAPI init failed!");
             }
         }
         catch (Exception exception)
         {
             System.Diagnostics.Debug.WriteLine(exception.ToString());
         }
     });
 }