开发者

C# WPF MediaElement Not opening video in XP

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 breakp开发者_C百科oint 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!


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜