I have an callback function :
ARCONTROLLER_Device_SetVideoStreamCallbacks (deviceController, decoderConfigCallback, didReceiveFrameCallback, NULL , NULL);
Which decoderConfigCallback
and didReceiveFrameCallback
are function.
When myproject have only a main.h and a main.cpp and define (without any class declaration)
eARCONTROLLER_ERROR didReceiveFrameCallback (ARCONTROLLER_Frame_t *frame, void *customData);
eARCONTROLLER_ERROR decoderConfigCallback (ARCONTROLLER_Stream_Codec_t codec, void *customData);
In .h file . when I call the ARCONTROLLER_Device_SetVideoStreamCallbacks
evry thing is ok . but when I'll use a cpp class and do these, I get this error:
invalid use of non-static member function