diff --git a/CPF_Cef/FrmMain.cs b/CPF_Cef/FrmMain.cs index c65ba08..fe57627 100644 --- a/CPF_Cef/FrmMain.cs +++ b/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(); diff --git a/CPF_Cef/MainModel.cs b/CPF_Cef/MainModel.cs index 85f6344..bb1099d 100644 --- a/CPF_Cef/MainModel.cs +++ b/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\":\"" + "播放成功" + "\"}";