Browse Source

优化视频

master
胡超1 1 year ago
parent
commit
98798bcae2
  1. 4
      CPF_Cef/FrmMain.cs
  2. 4
      CPF_Cef/MainModel.cs

4
CPF_Cef/FrmMain.cs

@ -81,9 +81,9 @@ namespace AksWebBrowser
//浏览器大小
Parame.webBrowser.Width = w;
Parame.webBrowser.Height = h;
//Parame.webBrowser.Url = "http://127.0.0.1:8096/#/main-out";
Parame.webBrowser.Url = "http://127.0.0.1:8096/#/main-out";
//Parame.webBrowser.Url = "http://192.168.0.232:8848/html/index.html";
Parame.webBrowser.Url = "http://192.168.0.34:8078/#/main-out";
//Parame.webBrowser.Url = "http://192.168.0.34:8078/#/main-out";
//Parame.webBrowser.Url = Application.StartupPath + @"\html\index.html";
//开发者工具暂时只能支持Windows
//webBrowser.ShowDev();

4
CPF_Cef/MainModel.cs

@ -1122,9 +1122,9 @@ namespace AksWebBrowser
//});
Task.Run(() =>
{
string command = $"pkill ffplay";
string command = $"pkill vlc";
ShllCommad(command);
command = $"ffplay -fs -autoexit -window_title {param.title} -i {param.url}";
command = $"vlc --fullscreen --video-title={param.title} {param.url}";
ShllCommad(command);
});
string result = "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"message\":\"success\",\"code\":\"200\",\"status\":true,\"suffix\":\"jpg\",\"data\":\"" + "播放成功" + "\"}";

Loading…
Cancel
Save