Jump to content
  • 0

Can Ant Media plugins make use of JNI to run C++ code?


Atul
 Share

Question

I am trying to run a C++ project as a plugin. According to my understanding the plugins are written in java, so can I compile the C++ code into a shared library and use it from java using java native interface.

Or is there any better way to access streams from And media server within the C++ project so that it can be used for image processing.

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Hi @Atul,

How are you!

You can use a C++ shared library by JNI. Actually both tensorflow and filter plugins use native libraries.

We use JavaCPP to call C++ shared library through Java.

You can refer to this https://github.com/bytedeco/javacpp

Thanks

On 4/30/2022 at 6:34 PM, Atul said:

I am trying to run a C++ project as a plugin. According to my understanding the plugins are written in java, so can I compile the C++ code into a shared library and use it from java using java native interface.

Or is there any better way to access streams from And media server within the C++ project so that it can be used for image processing.

 

Link to comment
Share on other sites

 Share


×
×
  • Create New...