Replies: 1 comment
-
Ping. Anyone? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I am following this example to instantiate JavaScript objects in C++. But my case is more complex as I need to pass an object with callbacks into class's constructor and I am not sure how to do this. Here is the code I need to translate to emscr API:
In cpp I have written this:
What can .new_() accept? Can I fetch it a struct with function pointers to those callbacks? Or it doesn't map 1:1 to the setup in Js?
VideoDecoder class constructor has the following signature:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions