Commit 20369ee1 by liulongfei

修复多次嵌入问题

parent ea748a40
...@@ -81,7 +81,8 @@ namespace VIZ.TVP.Module ...@@ -81,7 +81,8 @@ namespace VIZ.TVP.Module
} }
if (info.LocalEngineType == LocalEngineType.Eng4) if (info.LocalEngineType == LocalEngineType.Eng4)
{ {
this.VizProcess.StartInfo.Arguments = $" -u1 -n -M -e {loginInfo.VIZ_UserName}:@{loginInfo.VIZ_IP}/{loginInfo.GH_ServerName}:{loginInfo.GH_Port}"; this.VizProcess.StartInfo.Arguments = $" -o -P -db {loginInfo.VIZ_UserName}:@{loginInfo.VIZ_IP}/{loginInfo.GH_ServerName}:{loginInfo.GH_Port}";
//this.VizProcess.StartInfo.Arguments = $" -u1 -n -M -e {loginInfo.VIZ_UserName}:@{loginInfo.VIZ_IP}/{loginInfo.GH_ServerName}:{loginInfo.GH_Port}";
} }
this.VizProcess.StartInfo.UseShellExecute = true; this.VizProcess.StartInfo.UseShellExecute = true;
...@@ -105,7 +106,7 @@ namespace VIZ.TVP.Module ...@@ -105,7 +106,7 @@ namespace VIZ.TVP.Module
string cmd = $"RENDERER WINDOW_OPEN_ON_PARENT 0x{hWnd.ToString("X6")} {width} {height} ONAIR"; string cmd = $"RENDERER WINDOW_OPEN_ON_PARENT 0x{hWnd.ToString("X6")} {width} {height} ONAIR";
connectionModel.EndpointManager.Send(cmd); connectionModel.EndpointManager.Send(cmd);
} }
else if (info.LocalEngineType == LocalEngineType.Eng4) else if (string.IsNullOrWhiteSpace(ApplicationDomainEx.LocalVizManager.VizRendererName) && info.LocalEngineType == LocalEngineType.Eng4)
{ {
// 创建 EDITOR // 创建 EDITOR
ApplicationDomainEx.LocalVizManager.VizRendererName = connectionModel.EndpointManager.Request("EDITOR CREATE RENDERER"); ApplicationDomainEx.LocalVizManager.VizRendererName = connectionModel.EndpointManager.Request("EDITOR CREATE RENDERER");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment