Skip to content

fix: load the native library for classes used on their own - #417

Merged
devopvoid merged 1 commit into
mainfrom
fix/native-library-loading
Oct 22, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/native-library-loading

Conversation

@devopvoid

Copy link
Copy Markdown
Owner
  • NativeObject loads the native library, so every class that wraps a native object has it before its first native call, also when an application uses it without a PeerConnectionFactory, such as AudioConverter, CustomAudioSource, CustomVideoSource, NativeI420Buffer or VideoCapture.
  • VideoBufferConverter and PowerManagement, which do not extend it, load it themselves.
  • StandaloneLoadingTests uses each such class in a fresh JVM, since in the JVM the other tests share an earlier test has always loaded the library.

NativeObject loads the library before any class that wraps a native object is used, and VideoBufferConverter and PowerManagement load it themselves. A test uses each such class in a fresh JVM.
@devopvoid
devopvoid merged commit 3076f50 into main Oct 22, 2026
22 checks passed
@devopvoid
devopvoid deleted the fix/native-library-loading branch October 22, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant