Browse Source

優化視頻播放

master
胡超1 1 year ago
parent
commit
20b87386dd
  1. 1
      CPF_Cef/AKS.EnterpriseLibrary.WebBrowser.csproj
  2. 4
      CPF_Cef/AksVideoPlayer.cs
  3. 3
      CPF_Cef/MainModel.cs

1
CPF_Cef/AKS.EnterpriseLibrary.WebBrowser.csproj

@ -43,6 +43,7 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.IO.Ports" Version="8.0.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
<PackageReference Include="VideoLAN.LibVLC.Windows" Version="3.0.20" />
<PackageReference Include="Xhm.CPF" Version="0.9.6.7" />
<PackageReference Include="Xhm.CPF.Cef" Version="0.9.6.6" />
<PackageReference Include="Xhm.CPF.Vlc" Version="0.9.6.6" />

4
CPF_Cef/AksVideoPlayer.cs

@ -60,8 +60,8 @@ namespace AKS.EnterpriseLibrary.WebBrowser
{
IsAntiAlias = true;
CornerRadius = "3,3,3,3";
Height = "80%";
Width = "70%";
Height = "600";
Width = "800";
Background = "#2c2c2c";
ZIndex = 100;
Children.Add(new TextBlock

3
CPF_Cef/MainModel.cs

@ -662,8 +662,11 @@ namespace AKS.EnterpriseLibrary.WebBrowser
return "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"message\":\"Falied\",\"code\":\"400\",\"status\":false,\"data\":\"" + "视频播放设备未授权使用" + "\"}";
}
else
{
Parame.frm.Invoke(() =>
{
new AksVideoPlayer(Parame.frm, param.title, param.url);
});
string result = "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"message\":\"success\",\"code\":\"200\",\"status\":true,\"suffix\":\"jpg\",\"data\":\"" + "播放成功" + "\"}";
SubmitLogs(result, "playVideo");
return result;

Loading…
Cancel
Save