Merge branch 'master' of git.linphone.org:linphone-android
Conflicts: src/org/linphone/IncallActivity.java src/org/linphone/LinphoneActivity.java src/org/linphone/LinphonePreferencesActivity.java submodules/linphone test/org/linphone/TestConferenceActivity.java
This commit is contained in:
commit
25f6a5445c
12 changed files with 101 additions and 29 deletions
2
README
2
README
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
To build liblinphone for Android, you must:
|
To build liblinphone for Android, you must:
|
||||||
1) download the Android ndk (>=r5c) from google.
|
1) download the Android ndk (>=r5c) from google.
|
||||||
2) install the autotools: autoconf, automake, aclocal, libtoolize
|
2) install the autotools: autoconf, automake, aclocal, libtoolize pkgconfig
|
||||||
3) run the ./prepare_sources.sh script in the top level directory. This will download iLBC source files and convert some assembly files in VP8 project.
|
3) run the ./prepare_sources.sh script in the top level directory. This will download iLBC source files and convert some assembly files in VP8 project.
|
||||||
|
|
||||||
$ ./prepare_sources.sh
|
$ ./prepare_sources.sh
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#default values
|
#default values
|
||||||
BUILD_AMR=light
|
BUILD_AMR=light
|
||||||
|
BUILD_SRTP=1
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||||
BUILD_X264=1
|
BUILD_X264=1
|
||||||
LINPHONE_VIDEO=1
|
LINPHONE_VIDEO=1
|
||||||
|
@ -14,7 +16,7 @@ endif
|
||||||
|
|
||||||
##ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
##ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||||
ifeq ($(BUILD_GPLV3_ZRTP), 1)
|
ifeq ($(BUILD_GPLV3_ZRTP), 1)
|
||||||
BUILD_SRTP=1
|
BUILD_SRTP=1
|
||||||
ZRTP_C_INCLUDE= \
|
ZRTP_C_INCLUDE= \
|
||||||
$(linphone-root-dir)/submodules/externals/libzrtpcpp/src
|
$(linphone-root-dir)/submodules/externals/libzrtpcpp/src
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
<string name="pref_codecs_key">pref_codecs_key</string>
|
<string name="pref_codecs_key">pref_codecs_key</string>
|
||||||
<string name="pref_stun_server_key">pref_stun_server_key</string>
|
<string name="pref_stun_server_key">pref_stun_server_key</string>
|
||||||
<string name="pref_video_codec_vp8_key">pref_video_codec_vp8_key</string>
|
<string name="pref_video_codec_vp8_key">pref_video_codec_vp8_key</string>
|
||||||
|
<string name="pref_media_encryption_key">pref_media_encryption_key</string>
|
||||||
|
<string name="pref_media_encryption_key_none">none</string>
|
||||||
|
<string name="pref_media_encryption_key_srtp">srtp</string>
|
||||||
|
<string name="pref_media_encryption_key_zrtp">zrtp</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -202,4 +202,8 @@
|
||||||
|
|
||||||
<string name="pref_amr_summary">AMR codec might not be present on your phone</string>
|
<string name="pref_amr_summary">AMR codec might not be present on your phone</string>
|
||||||
<string name="pref_video_codec_vp8_title">VP8</string>
|
<string name="pref_video_codec_vp8_title">VP8</string>
|
||||||
|
<string name="pref_media_encryption">Media encryption</string>
|
||||||
|
<string name="media_encryption_none">None</string>
|
||||||
|
<string name="media_encryption_srtp">SRTP</string>
|
||||||
|
<string name="media_encryption_zrtp">ZRTP</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -146,6 +146,9 @@
|
||||||
<CheckBoxPreference android:key="@string/pref_transport_use_standard_ports_key"
|
<CheckBoxPreference android:key="@string/pref_transport_use_standard_ports_key"
|
||||||
android:title="@string/pref_transport_use_standard_ports"/>
|
android:title="@string/pref_transport_use_standard_ports"/>
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
<ListPreference android:title="@string/pref_media_encryption"
|
||||||
|
android:key="@string/pref_media_encryption_key"
|
||||||
|
android:defaultValue="@string/pref_media_encryption_key_none" />
|
||||||
|
|
||||||
<PreferenceScreen android:title="@string/pref_audio_hacks_title"
|
<PreferenceScreen android:title="@string/pref_audio_hacks_title"
|
||||||
android:layout="@layout/hidden">
|
android:layout="@layout/hidden">
|
||||||
|
|
|
@ -32,6 +32,7 @@ import org.linphone.core.LinphoneCall;
|
||||||
import org.linphone.core.LinphoneCoreException;
|
import org.linphone.core.LinphoneCoreException;
|
||||||
import org.linphone.core.Log;
|
import org.linphone.core.Log;
|
||||||
import org.linphone.core.LinphoneCall.State;
|
import org.linphone.core.LinphoneCall.State;
|
||||||
|
import org.linphone.core.LinphoneCore.MediaEncryption;
|
||||||
import org.linphone.mediastream.Version;
|
import org.linphone.mediastream.Version;
|
||||||
import org.linphone.ui.Numpad;
|
import org.linphone.ui.Numpad;
|
||||||
|
|
||||||
|
@ -452,8 +453,8 @@ public class IncallActivity extends AbstractCalleesActivity implements
|
||||||
final OnClickListener l = new CallActionListener(call);
|
final OnClickListener l = new CallActionListener(call);
|
||||||
confButton.setOnClickListener(l);
|
confButton.setOnClickListener(l);
|
||||||
|
|
||||||
String mediaEncryption = call.getCurrentParamsCopy().getMediaEncryption();
|
MediaEncryption mediaEncryption = call.getCurrentParamsCopy().getMediaEncryption();
|
||||||
if ("none".equals(mediaEncryption)) {
|
if (MediaEncryption.None == mediaEncryption) {
|
||||||
setVisibility(v, R.id.callee_status_secured, false);
|
setVisibility(v, R.id.callee_status_secured, false);
|
||||||
setVisibility(v, R.id.callee_status_maybe_secured, false);
|
setVisibility(v, R.id.callee_status_maybe_secured, false);
|
||||||
setVisibility(v, R.id.callee_status_not_secured, false);
|
setVisibility(v, R.id.callee_status_not_secured, false);
|
||||||
|
@ -477,13 +478,13 @@ public class IncallActivity extends AbstractCalleesActivity implements
|
||||||
enableView(content, R.id.merge_to_conference, l, showMergeToConf);
|
enableView(content, R.id.merge_to_conference, l, showMergeToConf);
|
||||||
enableView(content, R.id.terminate_call, l, true);
|
enableView(content, R.id.terminate_call, l, true);
|
||||||
|
|
||||||
String mediaEncryption = call.getCurrentParamsCopy().getMediaEncryption();
|
MediaEncryption mediaEncryption = call.getCurrentParamsCopy().getMediaEncryption();
|
||||||
if ("none".equals(mediaEncryption)) {
|
MediaEncryption supposedEncryption = LinphoneManager.getLc().getMediaEncryption();
|
||||||
boolean showUnencrypted = Version.hasZrtp();
|
if (mediaEncryption==MediaEncryption.None) {
|
||||||
setVisibility(content, R.id.unencrypted, showUnencrypted);
|
setVisibility(content, R.id.unencrypted, supposedEncryption!=MediaEncryption.None);
|
||||||
} else {
|
} else{
|
||||||
TextView token = (TextView) content.findViewById(R.id.authentication_token);
|
TextView token = (TextView) content.findViewById(R.id.authentication_token);
|
||||||
if ("zrtp".equals(mediaEncryption)) {
|
if (mediaEncryption==MediaEncryption.ZRTP) {
|
||||||
boolean authVerified = call.isAuthenticationTokenVerified();
|
boolean authVerified = call.isAuthenticationTokenVerified();
|
||||||
String fmt = getString(authVerified ? R.string.reset_sas_fmt : R.string.validate_sas_fmt);
|
String fmt = getString(authVerified ? R.string.reset_sas_fmt : R.string.validate_sas_fmt);
|
||||||
token.setText(String.format(fmt, call.getAuthenticationToken()));
|
token.setText(String.format(fmt, call.getAuthenticationToken()));
|
||||||
|
|
|
@ -66,6 +66,7 @@ import org.linphone.core.LinphoneCall.State;
|
||||||
import org.linphone.core.LinphoneCore.EcCalibratorStatus;
|
import org.linphone.core.LinphoneCore.EcCalibratorStatus;
|
||||||
import org.linphone.core.LinphoneCore.FirewallPolicy;
|
import org.linphone.core.LinphoneCore.FirewallPolicy;
|
||||||
import org.linphone.core.LinphoneCore.GlobalState;
|
import org.linphone.core.LinphoneCore.GlobalState;
|
||||||
|
import org.linphone.core.LinphoneCore.MediaEncryption;
|
||||||
import org.linphone.core.LinphoneCore.RegistrationState;
|
import org.linphone.core.LinphoneCore.RegistrationState;
|
||||||
import org.linphone.core.LinphoneCore.Transports;
|
import org.linphone.core.LinphoneCore.Transports;
|
||||||
import org.linphone.mediastream.Version;
|
import org.linphone.mediastream.Version;
|
||||||
|
@ -473,6 +474,18 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void initMediaEncryption(){
|
||||||
|
String pref = mPref.getString(getString(R.string.pref_media_encryption_key),
|
||||||
|
getString(R.string.pref_media_encryption_key_none));
|
||||||
|
MediaEncryption me=MediaEncryption.None;
|
||||||
|
if (pref.equals(getString(R.string.pref_media_encryption_key_srtp)))
|
||||||
|
me=MediaEncryption.SRTP;
|
||||||
|
else if (pref.equals(getString(R.string.pref_media_encryption_key_zrtp)))
|
||||||
|
me=MediaEncryption.ZRTP;
|
||||||
|
Log.i("Media encryption set to "+pref);
|
||||||
|
mLc.setMediaEncryption(me);
|
||||||
|
}
|
||||||
|
|
||||||
public void initFromConf() throws LinphoneConfigException {
|
public void initFromConf() throws LinphoneConfigException {
|
||||||
//traces
|
//traces
|
||||||
boolean lIsDebug = true;//mPref.getBoolean(getString(R.string.pref_debug_key), false);
|
boolean lIsDebug = true;//mPref.getBoolean(getString(R.string.pref_debug_key), false);
|
||||||
|
@ -482,7 +495,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
||||||
initialTransports = mLc.getSignalingTransportPorts();
|
initialTransports = mLc.getSignalingTransportPorts();
|
||||||
|
|
||||||
setSignalingTransportsFromConfiguration(initialTransports);
|
setSignalingTransportsFromConfiguration(initialTransports);
|
||||||
|
initMediaEncryption();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Configure audio codecs
|
// Configure audio codecs
|
||||||
|
@ -658,7 +671,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
||||||
key = R.string.pref_video_codec_h264_key;
|
key = R.string.pref_video_codec_h264_key;
|
||||||
} else if ("H263-1998".equals(mime)) {
|
} else if ("H263-1998".equals(mime)) {
|
||||||
key = R.string.pref_video_codec_h263_key;
|
key = R.string.pref_video_codec_h263_key;
|
||||||
} else if ("VP8-DRAFT-0-3-2".equals(mime)) {
|
} else if ("VP8".equals(mime)) {
|
||||||
key = R.string.pref_video_codec_vp8_key;
|
key = R.string.pref_video_codec_vp8_key;
|
||||||
} else {
|
} else {
|
||||||
Log.e("Unhandled video codec ", mime);
|
Log.e("Unhandled video codec ", mime);
|
||||||
|
|
|
@ -28,8 +28,10 @@ import static org.linphone.R.string.pref_codec_speex16_key;
|
||||||
import static org.linphone.R.string.pref_echo_cancellation_key;
|
import static org.linphone.R.string.pref_echo_cancellation_key;
|
||||||
import static org.linphone.R.string.pref_echo_canceller_calibration_key;
|
import static org.linphone.R.string.pref_echo_canceller_calibration_key;
|
||||||
import static org.linphone.R.string.pref_echo_limiter_key;
|
import static org.linphone.R.string.pref_echo_limiter_key;
|
||||||
|
import static org.linphone.R.string.pref_media_encryption_key;
|
||||||
import static org.linphone.R.string.pref_video_enable_key;
|
import static org.linphone.R.string.pref_video_enable_key;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -39,6 +41,7 @@ import org.linphone.core.LinphoneCore;
|
||||||
import org.linphone.core.LinphoneCoreException;
|
import org.linphone.core.LinphoneCoreException;
|
||||||
import org.linphone.core.Log;
|
import org.linphone.core.Log;
|
||||||
import org.linphone.core.LinphoneCore.EcCalibratorStatus;
|
import org.linphone.core.LinphoneCore.EcCalibratorStatus;
|
||||||
|
import org.linphone.core.LinphoneCore.MediaEncryption;
|
||||||
import org.linphone.mediastream.Version;
|
import org.linphone.mediastream.Version;
|
||||||
import org.linphone.mediastream.video.capture.hwconf.AndroidCameraConfiguration;
|
import org.linphone.mediastream.video.capture.hwconf.AndroidCameraConfiguration;
|
||||||
import org.linphone.mediastream.video.capture.hwconf.Hacks;
|
import org.linphone.mediastream.video.capture.hwconf.Hacks;
|
||||||
|
@ -47,6 +50,7 @@ import android.content.SharedPreferences;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.preference.CheckBoxPreference;
|
import android.preference.CheckBoxPreference;
|
||||||
|
import android.preference.ListPreference;
|
||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
import android.preference.PreferenceActivity;
|
import android.preference.PreferenceActivity;
|
||||||
import android.preference.Preference.OnPreferenceChangeListener;
|
import android.preference.Preference.OnPreferenceChangeListener;
|
||||||
|
@ -58,6 +62,7 @@ public class LinphonePreferencesActivity extends PreferenceActivity implements E
|
||||||
private CheckBoxPreference ecCalibratePref;
|
private CheckBoxPreference ecCalibratePref;
|
||||||
private CheckBoxPreference elPref;
|
private CheckBoxPreference elPref;
|
||||||
private CheckBoxPreference ecPref;
|
private CheckBoxPreference ecPref;
|
||||||
|
private ListPreference mencPref;
|
||||||
|
|
||||||
private SharedPreferences prefs() {
|
private SharedPreferences prefs() {
|
||||||
return getPreferenceManager().getSharedPreferences();
|
return getPreferenceManager().getSharedPreferences();
|
||||||
|
@ -98,6 +103,7 @@ public class LinphonePreferencesActivity extends PreferenceActivity implements E
|
||||||
});
|
});
|
||||||
ecPref = (CheckBoxPreference) findPreference(pref_echo_cancellation_key);
|
ecPref = (CheckBoxPreference) findPreference(pref_echo_cancellation_key);
|
||||||
elPref = (CheckBoxPreference) findPreference(pref_echo_limiter_key);
|
elPref = (CheckBoxPreference) findPreference(pref_echo_limiter_key);
|
||||||
|
mencPref = (ListPreference) findPreference(pref_media_encryption_key);
|
||||||
|
|
||||||
boolean fastCpu = Version.isArmv7();
|
boolean fastCpu = Version.isArmv7();
|
||||||
if (fastCpu) {
|
if (fastCpu) {
|
||||||
|
@ -109,6 +115,8 @@ public class LinphonePreferencesActivity extends PreferenceActivity implements E
|
||||||
findPreference(pref_echo_limiter_key).setEnabled(true);
|
findPreference(pref_echo_limiter_key).setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
initializeMediaEncryptionPreferences();
|
||||||
|
|
||||||
detectAudioCodec(pref_codec_amr_key,"AMR",8000, false);
|
detectAudioCodec(pref_codec_amr_key,"AMR",8000, false);
|
||||||
//detectAudioCodec(R.string.pref_codec_silk8_key,"SILK",8000, true);
|
//detectAudioCodec(R.string.pref_codec_silk8_key,"SILK",8000, true);
|
||||||
//detectAudioCodec(R.string.pref_codec_silk12_key,"SILK",12000, true);
|
//detectAudioCodec(R.string.pref_codec_silk12_key,"SILK",12000, true);
|
||||||
|
@ -136,6 +144,38 @@ public class LinphonePreferencesActivity extends PreferenceActivity implements E
|
||||||
|
|
||||||
if (Hacks.needSoftvolume()) checkAndDisableCheckbox(R.string.pref_audio_soft_volume_key);
|
if (Hacks.needSoftvolume()) checkAndDisableCheckbox(R.string.pref_audio_soft_volume_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void initializeMediaEncryptionPreferences() {
|
||||||
|
LinphoneCore lc=LinphoneManager.getLc();
|
||||||
|
boolean hasZrtp=lc.mediaEncryptionSupported(MediaEncryption.ZRTP);
|
||||||
|
boolean hasSrtp=lc.mediaEncryptionSupported(MediaEncryption.SRTP);
|
||||||
|
if (!hasSrtp && !hasZrtp){
|
||||||
|
mencPref.setEnabled(false);
|
||||||
|
}else{
|
||||||
|
List<CharSequence> mencEntries=new ArrayList<CharSequence>();
|
||||||
|
List<CharSequence> mencEntryValues=new ArrayList<CharSequence>();
|
||||||
|
mencEntries.add(getString(R.string.media_encryption_none));
|
||||||
|
mencEntryValues.add(getString(R.string.pref_media_encryption_key_none));
|
||||||
|
if (hasSrtp){
|
||||||
|
mencEntries.add(getString(R.string.media_encryption_srtp));
|
||||||
|
mencEntryValues.add(getString(R.string.pref_media_encryption_key_srtp));
|
||||||
|
}
|
||||||
|
if (hasZrtp){
|
||||||
|
mencEntries.add(getString(R.string.media_encryption_zrtp));
|
||||||
|
mencEntryValues.add(getString(R.string.pref_media_encryption_key_zrtp));
|
||||||
|
}
|
||||||
|
CharSequence[] contents=new CharSequence[mencEntries.size()];
|
||||||
|
mencEntries.toArray(contents);
|
||||||
|
mencPref.setEntries(contents);
|
||||||
|
contents=new CharSequence[mencEntryValues.size()];
|
||||||
|
mencEntryValues.toArray(contents);
|
||||||
|
mencPref.setEntryValues(contents);
|
||||||
|
mencPref.setDefaultValue(getString(R.string.media_encryption_none));
|
||||||
|
//mencPref.setValueIndex(mencPref.findIndexOfValue(getString(R.string.media_encryption_none)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void addEchoPrefsListener(){
|
private void addEchoPrefsListener(){
|
||||||
OnPreferenceChangeListener ec_listener=new OnPreferenceChangeListener(){
|
OnPreferenceChangeListener ec_listener=new OnPreferenceChangeListener(){
|
||||||
public boolean onPreferenceChange(Preference arg0, Object newValue) {
|
public boolean onPreferenceChange(Preference arg0, Object newValue) {
|
||||||
|
|
|
@ -18,6 +18,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
package org.linphone.core;
|
package org.linphone.core;
|
||||||
|
|
||||||
|
import org.linphone.core.LinphoneCore.MediaEncryption;
|
||||||
|
|
||||||
public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
||||||
protected final long nativePtr;
|
protected final long nativePtr;
|
||||||
|
|
||||||
|
@ -28,8 +30,8 @@ public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
||||||
private native void enableVideo(long nativePtr, boolean b);
|
private native void enableVideo(long nativePtr, boolean b);
|
||||||
private native boolean getVideoEnabled(long nativePtr);
|
private native boolean getVideoEnabled(long nativePtr);
|
||||||
private native void audioBandwidth(long nativePtr, int bw);
|
private native void audioBandwidth(long nativePtr, int bw);
|
||||||
private native void setMediaEncryption(long nativePtr, String menc);
|
private native void setMediaEncryption(long nativePtr, int menc);
|
||||||
private native String getMediaEncryption(long nativePtr);
|
private native int getMediaEncryption(long nativePtr);
|
||||||
private native void destroy(long nativePtr);
|
private native void destroy(long nativePtr);
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,12 +53,12 @@ public class LinphoneCallParamsImpl implements LinphoneCallParams {
|
||||||
audioBandwidth(nativePtr, value);
|
audioBandwidth(nativePtr, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMediaEncryption() {
|
public MediaEncryption getMediaEncryption() {
|
||||||
return getMediaEncryption(nativePtr);
|
return MediaEncryption.fromInt(getMediaEncryption(nativePtr));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMediaEnctyption(String menc) {
|
public void setMediaEnctyption(MediaEncryption menc) {
|
||||||
setMediaEncryption(nativePtr, menc);
|
setMediaEncryption(nativePtr, menc.mValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
private native boolean localConferenceMode(long nativePtr);
|
private native boolean localConferenceMode(long nativePtr);
|
||||||
|
|
|
@ -105,8 +105,8 @@ class LinphoneCoreImpl implements LinphoneCore {
|
||||||
private native void enableEchoLimiter(long nativePtr2, boolean val);
|
private native void enableEchoLimiter(long nativePtr2, boolean val);
|
||||||
private native int setVideoDevice(long nativePtr2, int id);
|
private native int setVideoDevice(long nativePtr2, int id);
|
||||||
private native int getVideoDevice(long nativePtr2);
|
private native int getVideoDevice(long nativePtr2);
|
||||||
private native String getMediaEncryption(long nativePtr);
|
private native int getMediaEncryption(long nativePtr);
|
||||||
private native void setMediaEncryption(long nativePtr, String menc);
|
private native void setMediaEncryption(long nativePtr, int menc);
|
||||||
private native boolean isMediaEncryptionMandatory(long nativePtr);
|
private native boolean isMediaEncryptionMandatory(long nativePtr);
|
||||||
private native void setMediaEncryptionMandatory(long nativePtr, boolean yesno);
|
private native void setMediaEncryptionMandatory(long nativePtr, boolean yesno);
|
||||||
|
|
||||||
|
@ -571,14 +571,14 @@ class LinphoneCoreImpl implements LinphoneCore {
|
||||||
return (LinphoneCall) findCallFromUri(nativePtr, uri);
|
return (LinphoneCall) findCallFromUri(nativePtr, uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMediaEncryption() {
|
public MediaEncryption getMediaEncryption() {
|
||||||
return getMediaEncryption(nativePtr);
|
return MediaEncryption.fromInt(getMediaEncryption(nativePtr));
|
||||||
}
|
}
|
||||||
public boolean isMediaEncryptionMandatory() {
|
public boolean isMediaEncryptionMandatory() {
|
||||||
return isMediaEncryptionMandatory(nativePtr);
|
return isMediaEncryptionMandatory(nativePtr);
|
||||||
}
|
}
|
||||||
public void setMediaEncryption(String menc) {
|
public void setMediaEncryption(MediaEncryption menc) {
|
||||||
setMediaEncryption(nativePtr, menc);
|
setMediaEncryption(nativePtr, menc.mValue);
|
||||||
}
|
}
|
||||||
public void setMediaEncryptionMandatory(boolean yesno) {
|
public void setMediaEncryptionMandatory(boolean yesno) {
|
||||||
setMediaEncryptionMandatory(nativePtr, yesno);
|
setMediaEncryptionMandatory(nativePtr, yesno);
|
||||||
|
@ -610,4 +610,9 @@ class LinphoneCoreImpl implements LinphoneCore {
|
||||||
public boolean isEchoLimiterEnabled() {
|
public boolean isEchoLimiterEnabled() {
|
||||||
return isEchoLimiterEnabled(nativePtr);
|
return isEchoLimiterEnabled(nativePtr);
|
||||||
}
|
}
|
||||||
|
private native boolean mediaEncryptionSupported(long nativePtr, int menc);
|
||||||
|
@Override
|
||||||
|
public boolean mediaEncryptionSupported(MediaEncryption menc) {
|
||||||
|
return mediaEncryptionSupported(nativePtr,menc.mValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit ab498e8e8cea496d6eb96a72d76cd987e49be544
|
Subproject commit 72a508632760bf20c2aeac7e253f7a481974f499
|
Loading…
Reference in a new issue