Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ DirectX
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 Smile | :)
Posted 2-Feb-13 1:29am
saad_lah1.1K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
v2
Comments
saad_lah at 2-Feb-13 14:03pm
   
thnx .... done
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
saad_lah at 2-Feb-13 14:02pm
   
Thnx :)
Abhishek Pant at 2-Feb-13 14:05pm
   
welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 150
2 Richard MacCutchan 135
3 Andreas Gieriet 100
4 DamithSL 95
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,260


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100