pquiring / javaforce

JavaForce library for building powerful Apps and Services (Native Bindings for Camera, OpenGL, ffmpeg). Includes VoIP stack, PLC I/O and many apps.
http://pquiring.github.io/javaforce
GNU Lesser General Public License v3.0
55 stars 24 forks source link

Question about dll files #15

Closed ftasso closed 4 months ago

ftasso commented 4 months ago

Hello, comparing the constructors of PhoneApp.java v 1.2.5 and v 1.2.7

private PhoneApp() { if (!BasePhone.lockFile()) { JFAWT.showError("Error", "Another instance of jfPhone is already running!"); System.exit(0); } MediaCoder.init(); panel = new PhonePanel(this, false); addWindowListener(this); setResizable(false); setContentPane(panel); pack(); setTitle("jfPhone/" + PhonePanel.version); JFImage icon = new JFImage(); icon.loadPNG(this.getClass().getClassLoader().getResourceAsStream("jfphone.png")); setIconImage(icon.getImage()); setPosition(); }

private PhoneApp() { if (!BasePhone.lockFile()) { JFAWT.showError("Error", "Another instance of jfPhone is already running!"); System.exit(0); } panel = new PhonePanel(this, false); addWindowListener(this); setResizable(false); setContentPane(panel); pack(); setTitle("jfPhone/" + PhonePanel.version); JFImage icon = new JFImage(); icon.loadPNG(this.getClass().getClassLoader().getResourceAsStream("jfphone.png")); setIconImage(icon.getImage()); setPosition(); }

the call "MediaCoder.init()" is no more present.

So, the dll files are no more used?

Thank you, Fabrizio

pquiring commented 4 months ago

The FFmpeg init is now preformed in the loader code (\native...).
The dll is no longer built. The project must define FFMPEG=true in the config file. See jfphone.cfg

pquiring commented 4 months ago

Oracle is planning to deprecate the System.loadLibrary() function so I decided to move the dll native code directly into the launcher code.

ftasso commented 4 months ago

Hello Peter, ok, I got it. I will study your new launcher code!

Thank you, Fabrizio

pquiring commented 4 months ago

np