Page 1 of 2

Webcam capture in livecode

Posted: Tue Mar 16, 2021 1:56 pm
by lemodizon
Hello everyone,

I want to try livecode to capture a image via my webcam and i'm using windows is this possible in livecode?.
webcamcapture.JPG
I tried this sample stack but it doesn't work using my webcam.
videotest.JPG

Re: Webcam capture in livecode

Posted: Tue Mar 16, 2021 4:24 pm
by richmond62

Re: Webcam capture in livecode

Posted: Tue Mar 16, 2021 7:10 pm
by elanorb
Hi lemodizon,

If you are using Indy or Business have a look at the cameraControl entry in the Dictionary.

Kind regards

Elanor

Re: Webcam capture in livecode

Posted: Tue Mar 16, 2021 7:58 pm
by richmond62
If you are using Indy or Business have a look at the cameraControl entry in the Dictionary.
I did, and I cannot work out how to set it up so something shows on a stack.

Re: Webcam capture in livecode

Posted: Wed Mar 17, 2021 2:08 am
by lemodizon
elanorb wrote:
Tue Mar 16, 2021 7:10 pm
Hi lemodizon,

If you are using Indy or Business have a look at the cameraControl entry in the Dictionary.

Kind regards

Elanor
Hi Elanor,

I'm using the community version is this working (cameraControl) in the community version? Thanks

Re: Webcam capture in livecode

Posted: Wed Mar 17, 2021 2:09 am
by lemodizon
richmond62 wrote:
Tue Mar 16, 2021 4:24 pm
Dunno:

https://livecode.byu.edu/video/videoGrabber.php
Hi Richmond62,

Thanks for the link I will try it hope this will work in community version.

Re: Webcam capture in livecode

Posted: Wed Mar 17, 2021 8:17 am
by richmond62
Unfortunately videoGrabber is 'dead and gone', but no-one has bothered to point that out.

Re: Webcam capture in livecode

Posted: Wed Mar 17, 2021 9:59 am
by AndyP
I noticed in the milestones that support for Web RTC is being added for 9.6.3-rc-1

https://github.com/livecode/livecode/mi ... 9?closed=1

Scroll down to the 4th enhancement listing [[ Bug 23030 ]] Enable WebRTC on CEF browse

https://webrtc.org/

So maybe one to watch?

Re: Webcam capture in livecode

Posted: Wed Mar 17, 2021 2:26 pm
by richmond62
Ah . . . it took me ages to work out that CameraControl and so on are for mobile devices
and NOT, apparently, for desktop computers.

AND my memory is even worse than I thought it was:

viewtopic.php?t=30390

Re: Webcam capture in livecode

Posted: Wed Mar 17, 2021 2:39 pm
by Klaus
CameraControl DOES in fact work on desktop machines, but you need a LC INDY license for this.

Re: Webcam capture in livecode

Posted: Wed Mar 17, 2021 3:11 pm
by richmond62
CameraControl DOES in fact work on desktop machines, but you need a LC INDY license for this.
I have an Indy licence, but seem unable to set up a visible rectangle on a stack to display a video feed from one
of my webcams.

Re: Webcam capture in livecode

Posted: Wed Mar 17, 2021 4:03 pm
by elanorb
Hi all

I have put together a small lesson on using the cameraControl, as noted before it does require Indy or Business. Please let me know if the lesson is not clear or anything does not work as expected.

https://lessons.livecode.com/m/4071/l/1 ... eracontrol

I have also added a bug report to have all the revVideoGrabber Dictionary entries updated.

https://quality.livecode.com/show_bug.cgi?id=23126

Elanor

Re: Webcam capture in livecode

Posted: Wed Mar 17, 2021 6:08 pm
by richmond62
That's super, Elanor.

Thank you very much indeed.

Re: Webcam capture in livecode

Posted: Wed Mar 17, 2021 6:22 pm
by bogs
Just for clarity, I either find no information on the platforms it works on,

Image

or I find something like (under cameraControlCreate) ...

OS - mac, windows, ios, android

...under some of the commands. I assume this means linux is excluded?

Re: Webcam capture in livecode

Posted: Thu Mar 18, 2021 2:50 pm
by lemodizon
elanorb wrote:
Wed Mar 17, 2021 4:03 pm
Hi all

I have put together a small lesson on using the cameraControl, as noted before it does require Indy or Business. Please let me know if the lesson is not clear or anything does not work as expected.

https://lessons.livecode.com/m/4071/l/1 ... eracontrol

I have also added a bug report to have all the revVideoGrabber Dictionary entries updated.

https://quality.livecode.com/show_bug.cgi?id=23126

Elanor
Hi Elanor,

Thanks for the information. Is there a command (cameracontrol) that works for community version only? looks like i have to buy indy just to try webcam capture in livecode.