webcam in CC

New releases and general discussions.

Post » Tue Nov 20, 2012 7:17 pm

how can i launch a webcam image on project?

i dont use CC but i need create a which will display the image from the web camera and video such as mpeg delgado2012-11-20 19:28:09
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Tue Nov 20, 2012 11:56 pm

Here's some examples of using the webcam object in CC if it helps:

As a game (DirectX) - https://dl.dropbox.com/u/4714446/WebcamDirectX.cap

As an application - https://dl.dropbox.com/u/4714446/WebcamApp.cap
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Thu Nov 22, 2012 2:56 pm

thanks @jayjay i will take a look at this
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Thu Nov 22, 2012 6:47 pm

No problem @delgado, hope it helps!
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Thu Nov 22, 2012 10:02 pm

@Jayjay i have another question. Why window shows image from webcam only at first time when i run this app ?delgado2012-11-22 22:14:15
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Fri Nov 23, 2012 7:06 am

@delgado Hmm, you mean it doesnt work when multiple copies are open? Or just the second time you debug it? =/

Also, is it the Application or DirectX version you're trying?
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Fri Nov 23, 2012 8:55 am

@Jayjay i dont open this two app in one time. Now when i open one of this applications i have this window before: https://dl.dropbox.com/u/44710358/DSC_0125.jpg
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Fri Nov 23, 2012 9:21 am

Ah I see, looks like it's not releasing the webcam when you close it the first time, so Windows can't access it. Not sure how to fix that since it might be a bug in the Webcam object.

Maybe have exiting only possible from a custom button and see if the webcam object has a "stop viewing webcam" event.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest