Jump to content
xisto Community
Raz716

How To Play Videos Using C++?

Recommended Posts

Ok this might seem like an obvious/stupid question but is there any way to play videos in C++ graphics? I'm using Codewarrior IDE (Learning Edition). I'm only in my high school programming class learning C++ cause our teacher is too stubborn to teach us java. I know you can play wav files using PlaySound(). Is there anything as simple or not difficult to use to play any video filetype?

Share this post


Link to post
Share on other sites

Playing sound is far more easier than playing Video. First of all, to play video you have to build a GUI, and provide whatever video library you're using with a space on which to render the video. The library you have to use really depends on the video format you're using (also true for audio), but Windows might have an API function to play AVI files, and then I'm completely wrong. If you wanna use COM, then there is a Windows Media Player ActiveX control you can use to display all kinds of video formats (especially if codecs are installed on your system). Try searching MSDN for "AVI" or something similar.

 

And one more thing. I hate Java. You're far off better with C++.

 

Good luck!

Share this post


Link to post
Share on other sites

os independance

How To Play Videos Using C++?

 

@seec77

 

Hi,

Do you know an OS-independant way to play videos? Mabye an library or a plugin for Qt?

 

Greetz

 

 

-reply by r0bb3n

Share this post


Link to post
Share on other sites
Playing avi files using c++How To Play Videos Using C++?

If you are familiar with Borland c++ Builder then playing avi files is easy. Just drop a TMediaPlayer control on a form and add a few lines of code (plenty of examples) and your done

-reply by kevin

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.