How can you play videos in C++, I am quite willing to use more than less any headers, I basically need a code that will work like this:
#include "PlayVideos.h"
int main(int argc, char *argv[])
{
SDL_Surface *screen=SDL_SetVideoMode(WINWIDTH,WINHEIGHT,WINBPP,SDL_SWSURFACE);
ShowVideo("MyVideo.avi",0,0,screen);//play a video at position 0,0 and apply it to the screen while playing sound
return 0;
}
or if it can't be done via blitting to a screen surface then I would settle for an external command like:
#include "PlayVideos.h"
int main(int argc, char *argv[])
{
ShowVideo("MyVideo.avi");//Play a video
return 0;
}
Any Ideas?