我发现了WpfMediaKit这似乎是<MediaElement>
的一个很好的选择。但是,我似乎无法让它工作。无法让WpfMediaKit工作
在Visual Studio中,我创建了一个新的WPF项目,然后我下载了NuGet package。我添加了xmlns
和播放器元素,并为该元素分配源并启动应用程序...但没有任何反应。没有显示,没有错误。
<Window x:Class="MainApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MainApp"
xmlns:wpfmediakit="clr-namespace:WPFMediaKit.DirectShow.Controls;assembly=WPFMediaKit"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<wpfmediakit:MediaUriElement Source="https://domain/path/video.mp4" />
</Grid>
</Window>
下载文件并使用本地副本,通过改变源file://C:/Temp/File.mp4
,于事无补了一下。
我觉得我必须错过一些重要的东西,但是什么?
MP4文件可以在Windows Media Player中,浏览器,Quicktime播放器,等玩就好了,这样的编解码器应该已经安装。 – GTHvidsten
系统托盘上是否有LAV类型的图标 – tabby
不知道“LAV”是什么,但系统托盘中没有附加图标 – GTHvidsten