private void Button3_Click(object sender, EventArgs e) { if (!channel_join_success_) { MessageBox.Show("Please join channel first!"); return; } re_.SetParameter("che.hardware_encoding", 1); //IntPtr desktop_wnd = GetDesktopWindow(); //int desktop_width = Screen.PrimaryScreen.Bounds.Width; //int desktop_height = Screen.PrimaryScreen.Bounds.Height; int ret = re_.MuteRemoteAudioStream(10000, true); richTextBox1.Text += String.Format("MuteRemoteAudioStream return: {0}\n", ret); ret = re_.MuteRemoteVideoStream(10000, true); richTextBox1.Text += String.Format("MuteRemoteVideoStream return: {0}\n", ret); // Game audio capture use this api temporarily. re_.StartScreenCapture(30 /*fps*/, 0, 0, 0, 0, 4000 * 1000, uint.Parse(textBox2.Text)); }
//屏蔽某人 public void HideSomeone(Text text) { uint uid = uint.Parse(text.text); mRtcEngine.MuteRemoteAudioStream(uid, true); }