c++ - EDSDK How to get Av property during LiveView -
i'm having trouble getting kedspropid_av after opening session camera.
eventually av property before each video taken @ moment can't av property straight after opening session. (i'm able properties zoompossition during liveview etc. no luck av).
i've tried getting av while button half pressed (during liveview mode) using command kedscameracommand_pressshutterbutton no luck went absolutely basic code still doesn't work , i'm getting avvalue = 0. appreciated.
my basic code:
// open session camera error = opensession(camref); if (error == eds_err_ok) { std::cout << "session open" << std::endl; edsuint32 av; av = getav(); std::cout << "aperture: " << av << std::endl; else{std::cout<<"edsdk error: " << error << std::endl;}
getav function:
edsuint32 getav(){ edsdatatype datatype; edsuint32 datasize; edsuint32 avvalue; error = edsgetpropertysize(camref, kedspropid_av, 0, &datatype, &datasize); if (error == eds_err_ok) { error = edsgetpropertydata(camref, kedspropid_av, 0, datasize, &avvalue); } return avvalue; }
Comments
Post a Comment