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
The initial intention is to get the buffer from nodejs, however the program stays in the event loop of live555 and not run the callback that I pass to it from nodejs and the api of v8 (not return to javascript).
The program in nodejs is.
'use strict'constaddon=require('./build/Release/eas-rtsp')addon.getBuffer((err,buffer)=>{if(err){console.log(err)}else{console.log(buffer.toString('hex'))}})// Code not reachedconsole.log('continue...')
Hi,
I am creating a native module in nodejs (uses libuv event loop)
I am using live555helper live555helper.
The initial intention is to get the buffer from nodejs, however the program stays in the event loop of live555 and not run the callback that I pass to it from nodejs and the api of v8 (not return to javascript).
The program in nodejs is.
The c ++ addon is:
overwrite onData of live555helper.
The live555 event loop starts.
The code eas-rtsp commit bb08a5e
The node program does not continue.
Should I add the live555 event loop in another thread?
How do I add an event type to the live555 event loop so that from the event loop of nodejs
I will be able to read the buffer.
Maybe use EventEmitter but I don't know.
What do you think?. It is posible?
Your opinion is very important to me.
Thank you!!!
Regards,
The text was updated successfully, but these errors were encountered: