linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] RuntimeException when trying to initialize the lin


From: Yonatan Nir
Subject: [Linphone-developers] RuntimeException when trying to initialize the linphone core for Android
Date: Tue, 17 Jan 2017 12:05:28 +0000

I'm using the precompiled version of Linphone for an Android app.

When trying to initialize and get an instance of the core like this:

linphoneCore = LinphoneCoreFactory.instance().createLinphoneCore(ourLinphoneCoreListener, context);

I sometimes get this exception:

Error: cannot retrieve cameras information (busy ?)java.lang.RuntimeException: Fail to connect to camera service

This exception comes from this line inside Linphone itself:  org.linphone.mediastream.video.capture.hwconf.AndroidCameraConfigurationReader9.probeCameras(AndroidCameraConfigurationReader9.java:40)
The line is simply opening a camera:  
Camera c = Camera.open(result);

What can be done about it? Now it crashes my app when it happens.

Thank you,
Yonatan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]