mediaelement error

ぐ巨炮叔叔 提交于 2019-12-14 03:13:05

问题


When I try to load my video, it won't play. The error I'm getting for the mediafailed event is: 3016 AG_E_INVALIDMEDIATYPE. It's a wmv file which is supported and I can play it with windows media player without a problem.

What could be the problem?

Thanks


回答1:


Not all media types are supported, not even all wmvs: http://msdn.microsoft.com/en-us/library/cc189080(v=vs.95).aspx

You could perhaps try to convert it to an appropriate media type.

Also, make sure it's a resource file. To do this, right click and get the properties of the file in the project, and set it's "build action" property to "resource". I also say "copy if newer" for the "copy to output directory" property.



来源:https://stackoverflow.com/questions/9648734/mediaelement-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!