Closed shoyu666 closed 8 months ago
Are you trying to instantiate a VideoEncoderFactory prior to calling LiveKit.create
? This will happen if the native library isn't loaded yet.
Try calling LiveKit.init
first if you need to access it prior to the create method.
Which version were you using prior to updating to 1.5.1? Can you also provide a stack trace?
thanks,call init works. ( LiveKit.Companion.init(applicationContext);)
version: 1.2.1 > 1.5.1
call stack:(java code) LiveKitOverrides overrides = new LiveKitOverrides(client, new SoftwareVideoEncoderFactory(),null, audioOptions, null); room = LiveKit.Companion.create(APP.application.getApplicationContext(), roomOptions, overrides);
Describe the bug exception: Caused by: java.lang.UnsatisfiedLinkError: No implementation found for long org.webrtc.SoftwareVideoEncoderFactory.nativeCreateFactory() (tried Java_org_webrtc_SoftwareVideoEncoderFactory_nativeCreateFactory and Java_org_webrtc_SoftwareVideoEncoderFactory_nativeCreateFactory__)
To Reproduce Steps to reproduce the behavior:
Expected behavior no exception
Screenshots If applicable, add screenshots to help explain your problem.
Device Info: