C# WPF MediaElement 不在 XP 中打开视频
我有一个奇怪的问题。
我有一个项目,只需打开 mp4 视频文件并播放它。我有一个事件处理程序,我在其中设置了一个断点,它进入我拥有的 Media_Opened 处理程序并在 Windows 7/64 位下播放它,但当我在 WindowsXP 32 位中播放相同的内容时,它甚至不会进入处理程序。
是否存在一些我不知道的兼容性问题?
注意:我正在32位模式下编译。
谢谢!
I have a strange problem.
I have a project that I have that simply opens up an mp4 video file and plays it. I have an event handler which I set a breakpoint in, and it gets into the Media_Opened handler I have and play it under Windows 7/64bit, but it does not even enter the handler when I play the same thing in WindowsXP 32bit.
Is there some compatibility issue that I am not aware of?
note: I am compiling in 32 bit mode.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WPF MediaElement 需要特定版本的 Windows Media Player,因此请确保您安装了最新版本(这可能是 Windows 7 上的默认版本,但在 XP 中不是)...还要确保您拥有所需的编解码器(可以吗?在媒体播放器中播放)!
附言。同样基于 MSDN 文档,看起来它需要 XP SP3,但不确定这是否是实际要求!
http://msdn.microsoft.com/en-我们/library/system.windows.controls.mediaelement.aspx
WPF MediaElement requires a specific version of Windows Media Player so make sure that you have the latest version installed (This might have been the default on windows 7 but not in XP)... also make sure that you have the required codecs (Can it play in media player)!
PS. Also based on the MSDN docs, it looks like it required XP SP3 but not sure if this is a actual requirement thou!!!
http://msdn.microsoft.com/en-us/library/system.windows.controls.mediaelement.aspx