Update exosip & linphone submodule + using setVideoPolicy
This commit is contained in:
parent
ce089b16a7
commit
bd60ad4276
4 changed files with 14 additions and 4 deletions
|
@ -458,7 +458,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
mLc.setRing(null);
|
||||
mLc.setRootCA(mLinphoneRootCaFile);
|
||||
mLc.setPlayFile(mPauseSoundFile);
|
||||
|
||||
mLc.setVideoPolicy(isAutoInitiateVideoCalls(), isAutoAcceptCamera());
|
||||
|
||||
try {
|
||||
initFromConf();
|
||||
|
@ -1098,10 +1098,14 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
return isVideoEnabled() && getPrefBoolean(R.string.pref_video_automatically_share_my_video_key, false);
|
||||
}
|
||||
|
||||
public boolean autoAcceptCamera() {
|
||||
public boolean isAutoAcceptCamera() {
|
||||
return getPrefBoolean(R.string.pref_video_automatically_accept_video_key, false);
|
||||
}
|
||||
|
||||
public boolean isAutoInitiateVideoCalls() {
|
||||
return getPrefBoolean(R.string.pref_video_initiate_call_with_video_key, false);
|
||||
}
|
||||
|
||||
public void setAudioModeIncallForGalaxyS() {
|
||||
mAudioManager.setMode(MODE_IN_CALL);
|
||||
}
|
||||
|
@ -1325,6 +1329,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
|||
if (state == State.CallEnd && mLc.getCallsNb() == 0) {
|
||||
routeAudioToReceiver();
|
||||
}
|
||||
|
||||
if (serviceListener != null) serviceListener.onCallStateChanged(call, state, message);
|
||||
for (LinphoneOnCallStateChangedListener l : getSimpleListeners(LinphoneOnCallStateChangedListener.class)) {
|
||||
l.onCallStateChanged(call, state, message);
|
||||
|
|
|
@ -692,4 +692,9 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
throws LinphoneCoreException {
|
||||
deferCallUpdate(nativePtr, aCall, params);
|
||||
}
|
||||
|
||||
private native void setVideoPolicy(long nativePtr, boolean autoInitiate, boolean autoAccept);
|
||||
public void setVideoPolicy(boolean autoInitiate, boolean autoAccept) {
|
||||
setVideoPolicy(nativePtr, autoInitiate, autoAccept);
|
||||
}
|
||||
}
|
||||
|
|
2
submodules/externals/exosip
vendored
2
submodules/externals/exosip
vendored
|
@ -1 +1 @@
|
|||
Subproject commit c3da0303519ad3120355cb85baee9cf6d0e4d1c2
|
||||
Subproject commit 7f12fd70a3109a8d3c8e874a16d2992231ce9915
|
|
@ -1 +1 @@
|
|||
Subproject commit 221c0c58067b858c9cee8a8aadb3a763003b7887
|
||||
Subproject commit 9bb8621513b435ff07b8a66138941632f5130710
|
Loading…
Reference in a new issue