-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
java.lang.UnsatisfiedLinkError: dlopen failed: library "liblkjingle_peerconnection_so.so" not found #1520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
yes, fixed in https://github.com/flutter-webrtc/flutter-webrtc/releases/tag/0.9.48%2Bhotfix.1, You just need to delete |
I have resolved the previous issue, but now I'm encountering a new error. Any assistance you can provide would be greatly appreciated:E/rtc (30359): # Build fingerprint: 'realme/RMX2001/RMX2001L1:11/RP1A.200720.011/1647528410731:user/release-keys' Exited.The method for accessing user media is invoked as follows: _getUserMedia() async { This method is utilized in the following context:_createPeerConnection(
} |
I've figured it out. Instead of adding the stream as a whole, you need to add each track individually. Although I'm not entirely sure why this issue is occurring, it seems like they're saying "AddStream is not available with Unified Plan SdpSemantics." Here's the solution: Instead of: pc.addStream(_localStream); You should use: if (_localStream.getAudioTracks().isNotEmpty) {
pc.addTrack(_localStream.getAudioTracks()[0], _localStream);
}
if (_localStream.getVideoTracks().isNotEmpty) {
pc.addTrack(_localStream.getVideoTracks()[0], _localStream);
} |
Describe the bug
Encountering a FATAL Error with the message "java.lang.UnsatisfiedLinkError: dlopen failed: library "liblkjingle_peerconnection_so.so" not found" when attempting to establish a Peer Connection.
Here I'm attaching the full error message with stack trace:
E/AndroidRuntime(13274): at org.webrtc.PeerConnectionFactory.initialize(PeerConnectionFactory.java:295)
E/AndroidRuntime(13274): at com.cloudwebrtc.webrtc.MethodCallHandlerImpl.initialize(MethodCallHandlerImpl.java:151)
E/AndroidRuntime(13274): at com.cloudwebrtc.webrtc.MethodCallHandlerImpl.onMethodCall(MethodCallHandlerImpl.java:282)
E/AndroidRuntime(13274): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/AndroidRuntime(13274): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/AndroidRuntime(13274): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
E/AndroidRuntime(13274): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/AndroidRuntime(13274): at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime(13274): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(13274): at android.os.Looper.loop(Looper.java:255)
E/AndroidRuntime(13274): at android.app.ActivityThread.main(ActivityThread.java:8212)
E/AndroidRuntime(13274): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(13274): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
E/AndroidRuntime(13274): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
I/Process (13274): Sending signal. PID: 13274 SIG: 9
Lost connection to device.
Exited.
To Reproduce
Invoke the creation of a Peer Connection by calling the RTCPeerConnection as follows:
RTCPeerConnection pc = await createPeerConnection(configuration, offerSdpConstraints);
Expected behavior
The process should seamlessly execute all necessary steps, resulting in the successful establishment of a VideoCall connection.
Platform information
The text was updated successfully, but these errors were encountered: