linphone-developers
[Top][All Lists]
Advanced

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

[Linphone-developers] [ ios ] Camera Switch can't work


From: 张文
Subject: [Linphone-developers] [ ios ] Camera Switch can't work
Date: Mon, 28 Apr 2014 21:33:10 +0800

Hi,

  I find a bug.

UICamSwitch's initUICamSwitch() method run before LinphoneManager's finishCoreConfiguration() method, so in below:

if ([LinphoneManager instance].frontCamId !=nil ) {

//ok, we have 2 cameras

if (strcmp(currentCamId,[LinphoneManager instance].frontCamId)==0) {

nextCamId = [LinphoneManager instance].backCamId;

} else {

nextCamId = [LinphoneManager instance].frontCamId;

}

} else {

nextCamId=currentCamId;

}


nextCamId always is equal with currentCamId.You can't switch camera now.


Calvin


reply via email to

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