Webcam capture in livecode

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

lemodizon
Posts: 175
Joined: Thu Apr 05, 2018 3:33 pm

Webcam capture in livecode

Post by lemodizon » Tue Mar 16, 2021 1:56 pm

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
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Webcam capture in livecode

Post by richmond62 » Tue Mar 16, 2021 4:24 pm


elanorb
Livecode Staff Member
Livecode Staff Member
Posts: 516
Joined: Fri Feb 24, 2006 9:45 am

Re: Webcam capture in livecode

Post by elanorb » 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
Elanor Buchanan
Software Developer
LiveCode

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Webcam capture in livecode

Post by richmond62 » Tue Mar 16, 2021 7:58 pm

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.

lemodizon
Posts: 175
Joined: Thu Apr 05, 2018 3:33 pm

Re: Webcam capture in livecode

Post by lemodizon » Wed Mar 17, 2021 2:08 am

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
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

lemodizon
Posts: 175
Joined: Thu Apr 05, 2018 3:33 pm

Re: Webcam capture in livecode

Post by lemodizon » Wed Mar 17, 2021 2:09 am

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.
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Webcam capture in livecode

Post by richmond62 » Wed Mar 17, 2021 8:17 am

Unfortunately videoGrabber is 'dead and gone', but no-one has bothered to point that out.

AndyP
Posts: 614
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)
Contact:

Re: Webcam capture in livecode

Post by AndyP » Wed Mar 17, 2021 9:59 am

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?
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Webcam capture in livecode

Post by richmond62 » Wed Mar 17, 2021 2:26 pm

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
Last edited by richmond62 on Wed Mar 17, 2021 3:11 pm, edited 1 time in total.

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Webcam capture in livecode

Post by Klaus » Wed Mar 17, 2021 2:39 pm

CameraControl DOES in fact work on desktop machines, but you need a LC INDY license for this.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Webcam capture in livecode

Post by richmond62 » Wed Mar 17, 2021 3:11 pm

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.

elanorb
Livecode Staff Member
Livecode Staff Member
Posts: 516
Joined: Fri Feb 24, 2006 9:45 am

Re: Webcam capture in livecode

Post by elanorb » 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
Elanor Buchanan
Software Developer
LiveCode

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Webcam capture in livecode

Post by richmond62 » Wed Mar 17, 2021 6:08 pm

That's super, Elanor.

Thank you very much indeed.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Webcam capture in livecode

Post by bogs » Wed Mar 17, 2021 6:22 pm

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?
Image

lemodizon
Posts: 175
Joined: Thu Apr 05, 2018 3:33 pm

Re: Webcam capture in livecode

Post by lemodizon » Thu Mar 18, 2021 2:50 pm

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.
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”