Page 1 of 1

Problem with some external functions [solved]

Posted: Thu Jun 06, 2013 10:14 pm
by Mag
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?

Re: Complete beginner questions on functions

Posted: Thu Jun 06, 2013 10:37 pm
by Mag
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

Re: Complete beginner question on mergAV functions

Posted: Thu Jun 06, 2013 10:46 pm
by Mag
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

Re: Complete beginner question on mergAV functions

Posted: Thu Jun 06, 2013 11:40 pm
by mwieder
Mag-

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

Re: Complete beginner question on mergAV functions

Posted: Thu Jun 06, 2013 11:55 pm
by Mag
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.

Re: Some mergAV functions don't work

Posted: Tue Jun 11, 2013 12:14 am
by Mag
Still no luck on this...

Re: Some mergAV functions don't work

Posted: Sun Jul 07, 2013 11:07 pm
by monte
Looks like for some reason I didn't implement it. It will be in the next version which should come out this week.

Re: Problem with some external functions

Posted: Sun Jul 07, 2013 11:46 pm
by Mag
Thank you Monte!

Re: Problem with some external functions [solved]

Posted: Thu Feb 18, 2021 2:14 pm
by MWCoastMedia
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