[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] HTC I/S(Incredible S) Front Cam ISSUE
From: |
Jim Lu |
Subject: |
[Linphone-developers] HTC I/S(Incredible S) Front Cam ISSUE |
Date: |
Fri, 16 Sep 2011 13:14:27 +0800 |
Dears,
The Linphone-Android.apk can smoothly execute on HTC-I/S last week.
But there has a problem when we use front cam with H.264.
The root cause was found yeaterday. And I would like to share with
you here.
1.Development Environment:
OS : Ubuntu 11.04
Sun JDK : 1.6.0_26
Eclipse : Indigo
AND-SDK : 2.3.3
Device : HTC Incredible S(2.3.3)
SIP Svr : Asterisk address@hidden OS 5.4
2.Debug Step
2.1. HTC->Setup->Application->Develop->Check the USB Debug.
2.2. Debug with Device
2.2.1 Ubuntu(PC or Virtual Box 4.0.6)->USB->HTC-I/S(or your Device)
2.2.2 Start ADB to connect to DEVICE through Console
address@hidden cd /home/jimlu/eclipse/android-sdk/plateform-tools
address@hidden ./adb kill-server
address@hidden ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
.....HTC/Device info....
3.Start Debug
3.1.Start Eclipse
3.1.1.Fix Issue(?)
(1).open src/org.linphone.core.video/AndroidCameraRecord.java
(2).go to line 75 , we'll found ....XDDDDD....
public synchronized void startPreview() { // FIXME throws exception?
in line 130 , the onSettingCameraParameters will crush when HTC I/S change to Front.
Because the fps is 10.0 in rear , and 7.0 in front. So at the line 125, we'll
got rhe range[0] and range[1] as 7000,7000. This will cause qualcomm throw exception.
Thus, I change the "fps" to 9.0 and then everything goes will in the HTC I/S.
However,I knew that this is the dirty way to fix the issue...I'm still looking for
the right way to fix this front-cam issue.
If there has any suggestion, please let me know. Thanks.
Best Regards,
Jim Lu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Linphone-developers] HTC I/S(Incredible S) Front Cam ISSUE,
Jim Lu <=