Click here to Skip to main content
15,900,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i could capture video from webcamera using camerawindow.but, now i want to close this camera window.
i used
C#
if (!(videoSource == null))

                if (videoSource.Running)
                {

                    videoSource.SignalToStop();


                    videoSource = null;

                }


but it's not worked.
i have to invoke this function (SignalToStop()) from another class.

plz help
thanks
Posted

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1339&lngWId=10

Follow this link .. i hope this will be helpful
 
Share this answer
 
Comments
Prabath Manjula 3-Nov-11 3:10am    
i already used this for my project. but in this case, it takes plenty of images, in the given time.

actually, i used this webcamcapture component and cameraWinadow component. now i want to call videoSource.SignalToStop() function and shift to this webcamcapture to capture image.

i have to stop videoSource.SignalToStop()(camerawindow),otherwise webcamcaputre not work because, there's a mutex problem

when i'm using application.Exit()then also it's working;
try to have a look at this site: http://www.socketcoder.com/Default.aspx?index=0[^] it helped me alot with source code both at stream and record videos from webcam hope you can find what you want :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900