Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / October 2004



Tip: Looking for answers? Try searching our database.

How can I detect if the webcam is active

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ray - 28 Oct 2004 17:01 GMT
is there a way I can detect if the web cam is in use?
I have VB6

I am unable to get the WM_CAP_GET_STATUS to work.

I can get the WM_CAP_DRIVER_CONNECT to return a True/False but this brings
up a Video Source window if False, I just want I just want the value (T/F)

Thanks
Ray
Ray - 28 Oct 2004 17:04 GMT
I want to check if the webcam is active on a remote computer...

Thanks
Ray..
CajunCoiler (http://www.cajuncoiler.tk) - 28 Oct 2004 21:48 GMT
You could try sampling it's output in server mode.  I would imagine that
would generate
a trappable error if it's not running, at which point, server informs client
of status.

> is there a way I can detect if the web cam is in use?
> I have VB6
[quoted text clipped - 6 lines]
> Thanks
> Ray
Ray - 29 Oct 2004 05:26 GMT
I not sure how to use server/client at this time..I was hoping for something
simple...

Ray

> You could try sampling it's output in server mode.  I would imagine that
> would generate
[quoted text clipped - 11 lines]
> > Thanks
> > Ray
CajunCoiler (http://www.cajuncoiler.tk) - 29 Oct 2004 16:53 GMT
Ok, if you want simple, this may take longer, but
try it...  download the current image, wait the
webcam's refresh time, and download another.
Then compare the two images.  If they've changed,
the cam is running... if not, it's off.

Example:
If Image1.Picture = Image2.Picture Then
   Debug.Print "Cam is off"
Else
   Debug.Print "Cam is on"
End If

> I not sure how to use server/client at this time..I was hoping for something
> simple...
[quoted text clipped - 19 lines]
> > > Thanks
> > > Ray
Ray - 30 Oct 2004 18:04 GMT
Hi CajunCoiler,

I tried your suggestion with no luck

I am unable to download the image without connecting to the device first.

Thanks

Ray

> Ok, if you want simple, this may take longer, but
> try it...  download the current image, wait the
[quoted text clipped - 33 lines]
> > > > Thanks
> > > > Ray
CajunCoiler (http://www.cajuncoiler.tk) - 30 Oct 2004 19:11 GMT
Then you must  be referring to a webcam in the videoconferencing sense.
A standard webcam posts images to a file every X seconds.
In such case, you will be stuck with the server/client scenario.

> Hi CajunCoiler,
>
[quoted text clipped - 44 lines]
> > > > > Thanks
> > > > > Ray
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.