Problem with some external functions [solved]

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

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Problem with some external functions [solved]

Post by Mag » Thu Jun 06, 2013 10:14 pm

I'm implementing mergAV external, the documentation says:
function mergAVCamGet pProp

Get the current property of the camera control.

Parameters:

pProp – the property to return which will be one of:
rect – the rect of the control
visible – the visible of the control
quality – the quality of the camera which will be one of:
photo
high
medium
low
352×288
640×480
iFrame960x540
1280×720
iFrame1280x720. The camera defaults to high.
camera – one of:
rear camera
front camera. The camera defaults to rear.
flash – one of:
on
off
auto. The camera defaults to auto.
torch – one of:
on
off
auto. The camera defaults to auto.
Returns the property
For some reason I can't get to know hot to make this work for flash and torch properties, so I start thinking that there is something that I don't know. Anybody can give me clues in how to use this function?
Last edited by Mag on Sun Jul 07, 2013 11:47 pm, edited 6 times in total.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Complete beginner questions on functions

Post by Mag » Thu Jun 06, 2013 10:37 pm

Some more info:

Code: Select all

on mouseUp
   answer "rect" && mergAVCamGet("rect") -- works
   
   answer "visible" && mergAVCamGet("visible") -- works
   
   answer "quality" && mergAVCamGet("quality") -- works
   
   answer "camera" && mergAVCamGet("camera") -- works
   
   answer "flash" && mergAVCamGet("flash") -- do nothing
   
   answer "torch" && mergAVCamGet("torch") -- do nothing
end mouseUp
PS
The device supports flash and torch

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Complete beginner question on mergAV functions

Post by Mag » Thu Jun 06, 2013 10:46 pm

If I put these before the others, no one answer box appears:

Code: Select all

   answer "flash" && mergAVCamGet("flash") -- do nothing

   answer "torch" && mergAVCamGet("torch") -- do nothing

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Complete beginner question on mergAV functions

Post by mwieder » Thu Jun 06, 2013 11:40 pm

Mag-

You might try pinging Monte directly about this. I don't see anything wrong with your code.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Complete beginner question on mergAV functions

Post by Mag » Thu Jun 06, 2013 11:55 pm

mwieder wrote:Mag-

You might try pinging Monte directly about this. I don't see anything wrong with your code.
Thank you mwieder, I wanted to be sure to use the function in the right way before to contact directly him.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Some mergAV functions don't work

Post by Mag » Tue Jun 11, 2013 12:14 am

Still no luck on this...

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Some mergAV functions don't work

Post by monte » Sun Jul 07, 2013 11:07 pm

Looks like for some reason I didn't implement it. It will be in the next version which should come out this week.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Problem with some external functions

Post by Mag » Sun Jul 07, 2013 11:46 pm

Thank you Monte!

MWCoastMedia
Posts: 32
Joined: Fri Jan 16, 2015 5:31 pm

Re: Problem with some external functions [solved]

Post by MWCoastMedia » Thu Feb 18, 2021 2:14 pm

Did this ever get implemented? I'm still seeing a problem in LC9.6.2rc2

mergAVCamSet("torch"), "on"
put mergAVCamGet("torch") into tTorch // tTorch is EMPTY

Post Reply