Fix video request accept dialog
This commit is contained in:
parent
dc9b7ffca1
commit
043da11d26
1 changed files with 14 additions and 0 deletions
|
@ -1034,6 +1034,20 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (state == State.CallUpdatedByRemote) {
|
||||||
|
// If the correspondent proposes video while audio call
|
||||||
|
boolean remoteVideo = call.getRemoteParams().getVideoEnabled();
|
||||||
|
boolean localVideo = call.getCurrentParamsCopy().getVideoEnabled();
|
||||||
|
boolean autoAcceptCameraPolicy = LinphonePreferences.instance().shouldAutomaticallyAcceptVideoRequests();
|
||||||
|
if (remoteVideo && !localVideo && !autoAcceptCameraPolicy && !LinphoneManager.getLc().isInConference()) {
|
||||||
|
try {
|
||||||
|
LinphoneManager.getLc().deferCallUpdate(call);
|
||||||
|
} catch (LinphoneCoreException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (state == State.StreamsRunning) {
|
if (state == State.StreamsRunning) {
|
||||||
if (BluetoothManager.getInstance().isBluetoothHeadsetAvailable()) {
|
if (BluetoothManager.getInstance().isBluetoothHeadsetAvailable()) {
|
||||||
BluetoothManager.getInstance().routeAudioToBluetooth();
|
BluetoothManager.getInstance().routeAudioToBluetooth();
|
||||||
|
|
Loading…
Reference in a new issue