diff --git a/CPF_Cef/FrmMain.cs b/CPF_Cef/FrmMain.cs index 248db71..c65ba08 100644 --- a/CPF_Cef/FrmMain.cs +++ b/CPF_Cef/FrmMain.cs @@ -53,15 +53,6 @@ namespace AksWebBrowser { PresenterFor = this, Name = nameof(Parame.webBrowser), - Bindings = - { - { - nameof(CusWebBrowser.Title), - "Title", - //this, - //BindingMode.OneWayToSource - }, - }, MarginTop=0, MarginLeft=0, MarginRight=0, @@ -86,15 +77,13 @@ namespace AksWebBrowser MainModel.DeviceControllerInit(); Parame.webBrowser = FindPresenterByName(nameof(Parame.webBrowser)); textBox = FindPresenterByName(nameof(textBox)); - Parame.webBrowser.CusRequest.CusResquestEvent += CusRequest_CusResquestEvent; - //浏览器大小 Parame.webBrowser.Width = w; Parame.webBrowser.Height = h; - 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://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 = Application.StartupPath + @"\html\index.html"; //开发者工具暂时只能支持Windows //webBrowser.ShowDev(); @@ -110,7 +99,7 @@ namespace AksWebBrowser MainModel.KillProcessByName("AksWebBrowser"); } - bool showDev = false; + bool showDev = true; private void WebBrowser_LoadEnd(object sender, LoadEndEventArgs e) { if (!showDev) diff --git a/CPF_Cef/MainModel.cs b/CPF_Cef/MainModel.cs index a898153..399b2bd 100644 --- a/CPF_Cef/MainModel.cs +++ b/CPF_Cef/MainModel.cs @@ -1112,7 +1112,6 @@ namespace AksWebBrowser }); if (!isFuncisFuncObject("playVideo")) { - return "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"message\":\"Falied\",\"code\":\"400\",\"status\":false,\"data\":\"" + "视频播放设备未授权使用" + "\"}"; } else