kurento: How to pass guint8 * to java server as an int[] -


i trying send gstbuffer objects map.data java server. have created event parameter int[] when raising event getting following error @ compile time.

error: no matching function call ‘kurento::module::vadcustomfilter::bufferreceived::bufferreceived(std::shared_ptr<kurento::mediaobject>, const char [16], int*)’  bufferreceived event (shared_from_this (), "buffer received", ((int *)buffer)); 

map.data of type guint8 *

is there wrong doing in type casting ?

i tried sending map.data std::string @ java side not receiving complete string.

casting guint8* char* fine, because sign changes. casting int * not ok because size different, in order send kind of events, may need copy array of guint8 array of int. think not fast operation, nor serializing big event, not expect have great performance.

furthermore, kurento events expects (you should check signature of bufferreceived) when declare array std::vector<int>, in case need create array , copy content.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -