Play video in windows c ++ application

I am currently using wxMediaCtrl to play videos in my application. The api is unfortunately a bit buggy and doesn't play all media types that I need to support (e.g. wmv).

I am wondering if there is an alternative C ++ api that will allow me to do this. I am currently just interested in windows support.

What do people usually use to embed videos in their apps? Also I need to manage, i.e. tell the video where to play in time, pause / stop, I don't need any shuttle controls as I have my own.

Thanks in advance.

+2


source to share


2 answers


wxMediaControl uses DirectShow for Windows, it should be able to play wmv files. If you can play a media file with GraphStudio , you can play it using wxMediaControl. If not, you need to install the appropriate video codecs. Have you tried installing FFDShow ?

You can try Video Control and here is an example of how you can play a video file.



If you want something without DirectShow, you can take a look at VLC ActiveX .

As a caveat regarding using GPL plugins (FFDShow or VLC ActiveX) in non-GPL applications, you should read this .

+1


source


Qt uses Phonon for cross-platform media playback. Windows Phonon uses DirectShow, so it can play any Windows (.wmv) files. He has all the possibilities that you mentioned. It's also very easy to implement and use. I highly recommend.



+1


source







All Articles