linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] RuntimeException when trying to initialize the


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

Hi,
This permission was indeed not present, but wouldn't it ALWAYS crash if that was the reason? Isn't the code for opening the camera always being invoked? The exception happens only here and there and not all the time..
Yonatan

From: Sylvain Berfini <address@hidden>
Sent: Tuesday, January 17, 2017 3:08:42 PM
To: address@hidden
Cc: address@hidden
Subject: Re: [Linphone-developers] RuntimeException when trying to initialize the linphone core for Android
 

Hi Yonatan,


Did you add the following permission into your AndroidManifest.xml file ?

<uses-permission android:name="android.permission.CAMERA"/>


Cheers,

Sylvain Berfini
Software Engineer @ Belledonne Communications
Le 17/01/2017 à 13:05, Yonatan Nir a écrit :
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




_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

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