本例已好视通为例,使用winform调用webserver接口后直接加入会议代码
Microsoft.Win32.RegistryKey regKey = null;
Microsoft.Win32.RegistryKey regSubKey = null;try
{
regKey = Microsoft.Win32.Registry.CurrentUser;
//目录
//查找某一键值
string objResult = regSubKey.GetValue("FilePath", "").ToString();
if (!String.IsNullOrEmpty(objResult))
{
string meetingargument = " -rid " + roomid + " -uname "+textBox1.Text+" -utype 0 -link TCP:fsmeeting.com:1089";
//通过在进程名后面添加命令行参数的方法,启动好视通客户端
System.Diagnostics.Process p = new System.Diagnostics.Process();
//如果这里使用p.StartInfo. 的方式设置有可能无法直接进入会议,只能进入登陆页
meetingargument);
p.StartInfo = startInfor;
p.Start();
}