MediaElement 崩溃啦

瀚娃娃 2015-09-23 03:03:12
新建项目 --> 选择.netframework 4.5 --> WPF应用程序 。 就没有问题

新建项目 --> 选择.netframework 4 --> WPF应用程序 。程序启动就崩溃了。。难道是4.0的framework 不支持MediaElement吗??



前端代码;非常简单 就一个Mediaelement,设置一下属性


后端代码;就一句,xxxx.play();



错误。。。

什么情况呢??
...全文
232 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
瀚娃娃 2015-09-24
  • 打赏
  • 举报
回复
引用 11 楼 duanzi_peng 的回复:
[quote=引用 10 楼 kk297173176kk 的回复:] [quote=引用 8 楼 duanzi_peng 的回复:] [quote=引用 7 楼 kk297173176kk 的回复:] [quote=引用 6 楼 duanzi_peng 的回复:] 另:http://stackoverflow.com/questions/3714507/c-sharp-wpf-mediaelement-not-opening-video-in-xp 这个中的: I made sure that the latest Windows Media Player was installed on the machine (Windows Media Player 11 32-bit) and that the necessary codecs were installed, and it worked afterwards. Thanks! 大概是说:要安装最新的Media Player 版本11 & 32位 与 解码器。 如果感兴趣,你可以在不卸载最新mediaplayer 的情况下 装个xp 视频解码器 测试测试。
难道意思是 4.0和4.5环境下,MediaElement 使用的mediaplayer也不同吗?[/quote] 个人感觉 版本是一方面,然后 必须安装解码器。[/quote] 让用户手动去装一些东西 是很蛋疼的一件事情。。[/quote] 确实。不过要解决问题,只能这样,以后及时更新系统也许能避免很多问题。[/quote] 也不让他们装了 ,直接 做限制吧,让他装系统吧,这样可以说是他们系统的事儿。。。这样反而或许能够说的过去。。 结贴。
exception92 2015-09-24
  • 打赏
  • 举报
回复
引用 10 楼 kk297173176kk 的回复:
[quote=引用 8 楼 duanzi_peng 的回复:] [quote=引用 7 楼 kk297173176kk 的回复:] [quote=引用 6 楼 duanzi_peng 的回复:] 另:http://stackoverflow.com/questions/3714507/c-sharp-wpf-mediaelement-not-opening-video-in-xp 这个中的: I made sure that the latest Windows Media Player was installed on the machine (Windows Media Player 11 32-bit) and that the necessary codecs were installed, and it worked afterwards. Thanks! 大概是说:要安装最新的Media Player 版本11 & 32位 与 解码器。 如果感兴趣,你可以在不卸载最新mediaplayer 的情况下 装个xp 视频解码器 测试测试。
难道意思是 4.0和4.5环境下,MediaElement 使用的mediaplayer也不同吗?[/quote] 个人感觉 版本是一方面,然后 必须安装解码器。[/quote] 让用户手动去装一些东西 是很蛋疼的一件事情。。[/quote] 确实。不过要解决问题,只能这样,以后及时更新系统也许能避免很多问题。
瀚娃娃 2015-09-24
  • 打赏
  • 举报
回复
引用 8 楼 duanzi_peng 的回复:
[quote=引用 7 楼 kk297173176kk 的回复:] [quote=引用 6 楼 duanzi_peng 的回复:] 另:http://stackoverflow.com/questions/3714507/c-sharp-wpf-mediaelement-not-opening-video-in-xp 这个中的: I made sure that the latest Windows Media Player was installed on the machine (Windows Media Player 11 32-bit) and that the necessary codecs were installed, and it worked afterwards. Thanks! 大概是说:要安装最新的Media Player 版本11 & 32位 与 解码器。 如果感兴趣,你可以在不卸载最新mediaplayer 的情况下 装个xp 视频解码器 测试测试。
难道意思是 4.0和4.5环境下,MediaElement 使用的mediaplayer也不同吗?[/quote] 个人感觉 版本是一方面,然后 必须安装解码器。[/quote] 让用户手动去装一些东西 是很蛋疼的一件事情。。
exception92 2015-09-24
  • 打赏
  • 举报
回复
引用 7 楼 kk297173176kk 的回复:
[quote=引用 6 楼 duanzi_peng 的回复:] 另:http://stackoverflow.com/questions/3714507/c-sharp-wpf-mediaelement-not-opening-video-in-xp 这个中的: I made sure that the latest Windows Media Player was installed on the machine (Windows Media Player 11 32-bit) and that the necessary codecs were installed, and it worked afterwards. Thanks! 大概是说:要安装最新的Media Player 版本11 & 32位 与 解码器。 如果感兴趣,你可以在不卸载最新mediaplayer 的情况下 装个xp 视频解码器 测试测试。
难道意思是 4.0和4.5环境下,MediaElement 使用的mediaplayer也不同吗?[/quote] 个人感觉 版本是一方面,然后 必须安装解码器。
瀚娃娃 2015-09-24
  • 打赏
  • 举报
回复
引用 6 楼 duanzi_peng 的回复:
另:http://stackoverflow.com/questions/3714507/c-sharp-wpf-mediaelement-not-opening-video-in-xp 这个中的: I made sure that the latest Windows Media Player was installed on the machine (Windows Media Player 11 32-bit) and that the necessary codecs were installed, and it worked afterwards. Thanks! 大概是说:要安装最新的Media Player 版本11 & 32位 与 解码器。 如果感兴趣,你可以在不卸载最新mediaplayer 的情况下 装个xp 视频解码器 测试测试。
那么 这样 不是就蛋疼了。。。程序 装在xp 上 和装在win7上。。我擦。。
瀚娃娃 2015-09-24
  • 打赏
  • 举报
回复
引用 6 楼 duanzi_peng 的回复:
另:http://stackoverflow.com/questions/3714507/c-sharp-wpf-mediaelement-not-opening-video-in-xp 这个中的: I made sure that the latest Windows Media Player was installed on the machine (Windows Media Player 11 32-bit) and that the necessary codecs were installed, and it worked afterwards. Thanks! 大概是说:要安装最新的Media Player 版本11 & 32位 与 解码器。 如果感兴趣,你可以在不卸载最新mediaplayer 的情况下 装个xp 视频解码器 测试测试。
难道意思是 4.0和4.5环境下,MediaElement 使用的mediaplayer也不同吗?
exception92 2015-09-23
  • 打赏
  • 举报
回复
另:http://stackoverflow.com/questions/3714507/c-sharp-wpf-mediaelement-not-opening-video-in-xp 这个中的: I made sure that the latest Windows Media Player was installed on the machine (Windows Media Player 11 32-bit) and that the necessary codecs were installed, and it worked afterwards. Thanks! 大概是说:要安装最新的Media Player 版本11 & 32位 与 解码器。 如果感兴趣,你可以在不卸载最新mediaplayer 的情况下 装个xp 视频解码器 测试测试。
exception92 2015-09-23
  • 打赏
  • 举报
回复
引用 4 楼 kk297173176kk 的回复:
[quote=引用 3 楼 duanzi_peng 的回复:] [quote=引用 2 楼 kk297173176kk 的回复:] [quote=引用 1 楼 duanzi_peng 的回复:] 看看你电脑的 MediaPlayer 版本是多少??
是 12.0.7601.18840 和这个有关系吗?我有一点疑问:不管我用.netframework 4.0 还是4.5 我是在同一台机器上的,Mediaplayer版本是不会发生变化的。[/quote] 看你上传图片中的”故障模块版本“,,,[/quote] 好吧,这个是版本不对吗? 项目本身用的是4.5的 但是4.5的不能装在xp上,所以就果断换4.0的,谁知道一换。。就蛋疼了。。 这个问题应该怎么处理呢?求指点。[/quote] 看12楼。 http://bbs.csdn.net/topics/391035808
瀚娃娃 2015-09-23
  • 打赏
  • 举报
回复
引用 3 楼 duanzi_peng 的回复:
[quote=引用 2 楼 kk297173176kk 的回复:] [quote=引用 1 楼 duanzi_peng 的回复:] 看看你电脑的 MediaPlayer 版本是多少??
是 12.0.7601.18840 和这个有关系吗?我有一点疑问:不管我用.netframework 4.0 还是4.5 我是在同一台机器上的,Mediaplayer版本是不会发生变化的。[/quote] 看你上传图片中的”故障模块版本“,,,[/quote] 好吧,这个是版本不对吗? 项目本身用的是4.5的 但是4.5的不能装在xp上,所以就果断换4.0的,谁知道一换。。就蛋疼了。。 这个问题应该怎么处理呢?求指点。
exception92 2015-09-23
  • 打赏
  • 举报
回复
引用 2 楼 kk297173176kk 的回复:
[quote=引用 1 楼 duanzi_peng 的回复:] 看看你电脑的 MediaPlayer 版本是多少??
是 12.0.7601.18840 和这个有关系吗?我有一点疑问:不管我用.netframework 4.0 还是4.5 我是在同一台机器上的,Mediaplayer版本是不会发生变化的。[/quote] 看你上传图片中的”故障模块版本“,,,
瀚娃娃 2015-09-23
  • 打赏
  • 举报
回复
引用 1 楼 duanzi_peng 的回复:
看看你电脑的 MediaPlayer 版本是多少??
是 12.0.7601.18840 和这个有关系吗?我有一点疑问:不管我用.netframework 4.0 还是4.5 我是在同一台机器上的,Mediaplayer版本是不会发生变化的。
exception92 2015-09-23
  • 打赏
  • 举报
回复
看看你电脑的 MediaPlayer 版本是多少??

8,737

社区成员

发帖
与我相关
我的任务
社区描述
WPF/Silverlight相关讨论
社区管理员
  • WPF/Silverlight社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧