July 19th, 2006, 06:16 AM
#1
CAnimateCtrl
Hello every one;
please can anyone tell me how i use CAnimateCtrl to play video in my program with explain?
July 19th, 2006, 06:43 AM
#2
Re: CAnimateCtrl
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
July 19th, 2006, 08:27 AM
#3
Re: CAnimateCtrl
CAnimateCtrl displays a clip only in Audio Video Interleaved (AVI) format.
See Using CAnimateCtrl .
July 21st, 2006, 10:37 PM
#4
Re: CAnimateCtrl
thank you very much humptydumpty i value your information but if u have any any information about CAnimate please tell me!
July 23rd, 2006, 10:19 PM
#5
Re: CAnimateCtrl
Originally Posted by
numnum
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 .
Thanx
August 3rd, 2006, 01:47 PM
#6
Re: CAnimateCtrl
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
August 3rd, 2006, 10:52 PM
#7
Re: CAnimateCtrl
Then Show your Code. Then Only Some one Can help you.
Thanx
August 4th, 2006, 12:56 AM
#8
Re: CAnimateCtrl
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.
August 13th, 2006, 07:54 AM
#9
Re: CAnimateCtrl
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);
}
}
Attached Images
August 13th, 2006, 08:05 AM
#10
Re: CAnimateCtrl
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.
August 13th, 2006, 08:32 PM
#11
Re: CAnimateCtrl
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
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width