You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a problem now. When I use the following code, I will define a callback function for on_rgba_frame_data. Normally, this data will be a pointer reference. But the data in C++ is normal, and I get a null pointer. Is it the data structure I defined
exports.rtspRgbaCallback=cb=>{conston_rgba_frame_data=koffi.proto('void on_rgba_frame_data(uint8_t *data, int width, int height)');constfunc=koffi.register((data,width,height)=>{console.log('decodeData5=================rgba',data,width,height)constdecodeData5=newUint8Array(data.buffer);cb({data: decodeData5,width: width,height: width===1920 ? 1080 : 2160,});},koffi.pointer(on_rgba_frame_data))try{rtsp_player_set_on_rgba_frame_data(rtspPlayer,func);}catch(err){console.log(err,'----------------------------------------------------')}};
The text was updated successfully, but these errors were encountered:
Hello, I have a problem now. When I use the following code, I will define a callback function for on_rgba_frame_data. Normally, this data will be a pointer reference. But the data in C++ is normal, and I get a null pointer. Is it the data structure I defined
The text was updated successfully, but these errors were encountered: