Hello every one;
please can anyone tell me how i use CAnimateCtrl to play video in my program with explain?
Printable View
Hello every one;
please can anyone tell me how i use CAnimateCtrl to play video in my program with explain?
is there any need of This Control to Play Video. have a Look for MCIWndPlay() in MSDN and just open your header file <vfw.h> everything is there what else you want. So Simply use Window provided MCI classes this will help you.
Thanx
CAnimateCtrl displays a clip only in Audio Video Interleaved (AVI) format.
See Using CAnimateCtrl.
thank you very much humptydumpty i value your information but if u have any any information about CAnimate please tell me!
Did u checked the Link Provide by Ovidiucucu .Quote:
Originally Posted by numnum
Thanx
yes i checked but when i execute the program assertion dialogebox appear ,i think that the problem in parameter of CWND please can u help me
thanks
Then Show your Code. Then Only Some one Can help you.
Thanx
Hi,
If your aim is to play an .AVI file, there are 3 ways of doing it.
1) Use CAnimateCtrl :-
NOTE:- Can play ONLY uncompressed .avi files.For Example,it will not work with
Globe.avi.
2) Use mciSendString
3) Use Video For Windows (VFW)
Take a look at http://www.geocities.com/contactgiri...llaneous1.html
to see how they can be used in your application.
Hi Girish
I read your suggest and decided to use the vfw approach, but I encounter the following link error , plse see the attached jpg file.
my code is
Code:void CvcvideoDlg::OnBnClickedVfw()
{
// TODO: Add your control notification handler code here
HWND hMCI;
TCHAR szFile[] = "day1_1.avi";
hMCI = MCIWndCreate(m_hWnd,AfxGetApp()->m_hInstance,
MCIWNDF_SHOWNAME|MCIWNDF_NOMENU, NULL);
if (MCIWndOpen(hMCI,szFile, 0) != 0)
{
MessageBox("Unable to play AVI!","Error!");
MCIWndDestroy(hMCI);
}
}
You are running around tail since about one month, instead of using CAnimateCtrl which is very, very simple.
Anytime you get an assertion, see first what's the cause (eventually sare it with us), and only after that, shoot in the dark.
Hi ovidiucucu
May I ******** some points
1) I am kenobe not numnum
2) I just join this thread 2 days ago.
3) I prefer vfw but not CAnimateCtrl because CAnimateCtrl can not play non-compressed avi files.
4) I would like to playback other vido format such as .mpg and others,
Couild you please throw some lights?
Thanks