• Advertisement
Sign in to follow this  

Playing a Video

This topic is 1046 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello!

 

I have an application that I have made in Visual Studio 2013 using c++ and DirectX. What I want to do is when you start the application the application should not run immediatly, instead a video should play that is around 10 seconds long and after that the application starts running. So basically what I want to do is just to play a simple video nothing more. How do I do that? Note that I want the video to play in fullscreen mode, not in a window!

 

Regards!

Share this post


Link to post
Share on other sites
Advertisement

If you're already using DirectX, look at DirectShow. Here is some example code for how to play an avi file. It can play whatever formats you have codecs for installed on the PC.

If you are using some obscure format, your installer would have to install the codec, so stick to mpeg or avi formats which are pretty common.

Share this post


Link to post
Share on other sites

Sorry for my late respond, I have been very busy lately. I will definitely take a look at Windows Media Foundation and Directshow. Thanks a lot for the answers!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement