询问者
Media Foundation开发视频播放器的问题

问题
全部回复
-
你好:
请问你创建的是C++项目吗?如果是的话好像要添加一个引用:
#include <mfmediaengine.h>
如果使用IMFMediaEngine接口的话还需要创建一个实例:
IMFMediaEngineClassFactory::CreateInstance method
以下文档可能对你有帮助:
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
那你创建的是什么项目呢?你的播放器运行在什么平台上的呢?
.net中暂时还没有提供对这个接口的托管代码支持,在C#语言中调用Media Foundation的话可能需要对其中的非托管代码进行一个封装,已经有一些现成的开源的项目,比如:
或者也可以考虑使用DirectShow来作视频开发。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
你好:
微软并没有在Media Foundation方面提供托管代码的支持,请参考这篇微软博客中的Q&A:
Calling the Format SDK, DirectShow, Media Foundation or the WASAPI from managed code (C#, VB.net)(http://blogs.msdn.com/b/mediasdkstuff/archive/2009/04/01/calling-the-format-sdk-directshow-media-foundation-or-the-wasapi-from-managed-code-c-vb-net.aspx)你使用的"MediaFoundation.dll"应该是第三方的类库Media Foundation .NET是吧?执行这个方法画面停止有可能是这个类库的BUG,或者是对播放的视频文件的大小,格式或者分辨率等有一些限制。
最好的办法就是到这个类库官方讨论区去寻求解决办法,本论坛不提供第三方类库的技术支持。建议你集成Windows Media Player到你的项目中:
Embedding the Windows Media Player Control in a C# Solution
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已编辑 CaillenModerator 2014年3月28日 8:12