如何在win32 C ++ Directx中播放swf文件 [英] How to play swf files in win32 C++ Directx

查看:87
本文介绍了如何在win32 C ++ Directx中播放swf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,

我正在尝试创建一个在我的directx程序中播放swf文件的函数。我不知道我会怎么做。请帮助:)

Hey,
I am trying to make a function which play swf files in my directx program. I have no idea how i gonna make it. Some one please help :)

推荐答案

如果您是COM / C ++开发人员,那么您可能需要查找Windows MediaFoundation API,这是DirectX最佳工作方式。有一个样本媒体播放器,它非常小巧,可以播放swf文件。我知道我在某处,因为我自己用它作为参考。你可以在我之前找到它但我会更新这篇文章。

...

好​​吧它叫做MFPlayer2而且它是它的一部分Samples \multimedia \ mediafoundation下的Windows SDK 7.1。你需要从微软获得SDK(它是免费下载的)如果你还没有它,或者如果没有安装你的样品就运行更新。

这应该可以为你提供你需要的一切,虽然从来没有像微软那样编写示例应用程序作为如何编写代码的建议,这很可怕但是至少它是相当的小而且完成你需要的工作。
You might want to look up the Windows MediaFoundation API if you''re a COM/C++ developer which is the way DirectX works best. There is a sample media player that goes with it that is really small and simple and plays swf files. I know I have it somewhere because I was using it as a reference myself. You can probably find it before I do but I''ll update this post otherwise.
...
OK it''s called MFPlayer2 and it''s part of Windows SDK 7.1 under Samples\multimedia\mediafoundation. You''ll need to get the SDK from Microsoft (It''s a free download) if you don''t already have it or run an update if your samples are not installed.
That should give you everything you need although as ever don''t take the way Microsoft write sample apps as advice on how to write code, it''s terrible but at least it''s quite small and does the job you need.


带有来源事件的DX9 Shockwave Flash Player演示 [ ^ ]


这篇关于如何在win32 C ++ Directx中播放swf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆