playing a .wmv file in an MFC application
-
All, Is there an easy way, in an MFC application, to launch and automatically play a .WMV file? I don't want to open Windows Media Player, but instead have this video play inside my application. Thanks in advance.:confused:
-
All, Is there an easy way, in an MFC application, to launch and automatically play a .WMV file? I don't want to open Windows Media Player, but instead have this video play inside my application. Thanks in advance.:confused:
You can embedd the media player inside your app as a control. My memory is rusty on how complex this is to do in C++, although I know it's trivial in C#, if you can handle a .NET dependancy, you could use the .NET control, although it just wraps WMP, so there's no reason you'd need to.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
All, Is there an easy way, in an MFC application, to launch and automatically play a .WMV file? I don't want to open Windows Media Player, but instead have this video play inside my application. Thanks in advance.:confused:
IMO the easiest way to play a WMV is to use DirectShow[^]. The SDK has enough sample code to do a player with minimal effort. If you want to work with the files, the Windows Media Format SDK is a great resource. See Windows Media Downloads[^]. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
All, Is there an easy way, in an MFC application, to launch and automatically play a .WMV file? I don't want to open Windows Media Player, but instead have this video play inside my application. Thanks in advance.:confused:
See MCI functions,you can find articles about it on the codeproject
-
See MCI functions,you can find articles about it on the codeproject
I have since tried this and was able to load the video, but the playback is VERY choppy. It seems that it pauses about once a second as if it caching more of the video. Any suggestions as to why this happens?
-
I have since tried this and was able to load the video, but the playback is VERY choppy. It seems that it pauses about once a second as if it caching more of the video. Any suggestions as to why this happens?
Could you load other formats like avi or Mpeg?