基路径
This commit is contained in:
parent
5cac0bf044
commit
a012185146
|
@ -53,7 +53,7 @@ namespace JianGongYun.TRTC.Utils
|
|||
|
||||
public static bool IsTestEnv()
|
||||
{
|
||||
string path = Environment.CurrentDirectory + "\\ShowTestEnv.txt";
|
||||
string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ShowTestEnv.txt");
|
||||
return File.Exists(path);
|
||||
}
|
||||
|
||||
|
|
|
@ -654,7 +654,7 @@ namespace JianGongYun.TRTC
|
|||
vw.Dispose();
|
||||
//合并视频
|
||||
var arguments = $@"-i ""{VideoTempPath}"" -i ""{AudioTempPath}"" -c:v copy -c:a copy -strict experimental -y ""{ResultFilePath}""";
|
||||
Process prc = new Process { StartInfo = new ProcessStartInfo { FileName = Path.Combine(Environment.CurrentDirectory, "ffmpeg.exe"), Arguments = arguments, CreateNoWindow = true, UseShellExecute = false } };
|
||||
Process prc = new Process { StartInfo = new ProcessStartInfo { FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ffmpeg.exe"), Arguments = arguments, CreateNoWindow = true, UseShellExecute = false } };
|
||||
prc.Start();
|
||||
prc.WaitForExit();
|
||||
CurrentLiveWindow.Dispatcher.Invoke(new Action(() =>
|
||||
|
|
|
@ -53,7 +53,7 @@ namespace JianGongYun.TRTC.Utils
|
|||
|
||||
public static bool IsTestEnv()
|
||||
{
|
||||
string path = Environment.CurrentDirectory + "\\ShowTestEnv.txt";
|
||||
string path =Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ShowTestEnv.txt");
|
||||
return File.Exists(path);
|
||||
}
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ namespace JianGongYun.TRTC.Windows
|
|||
item.Kill();
|
||||
}
|
||||
}
|
||||
Process prc = new Process { StartInfo = new ProcessStartInfo { FileName = System.IO.Path.Combine(Environment.CurrentDirectory, "Pointofix.exe"), CreateNoWindow = false, UseShellExecute = false } };
|
||||
Process prc = new Process { StartInfo = new ProcessStartInfo { FileName = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Pointofix.exe"), CreateNoWindow = false, UseShellExecute = false } };
|
||||
prc.Start();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
Loading…
Reference in New Issue