Return with new linphone submodule
This commit is contained in:
parent
1b6f11e623
commit
b01ae2ecb0
4 changed files with 5 additions and 5 deletions
|
@ -227,7 +227,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
public void initOpenH264DownloadHelper() {
|
public void initOpenH264DownloadHelper() {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
|
||||||
Log.i("Android >= 5.1 we disable the download of OpenH264");
|
Log.i("Android >= 5.1 we disable the download of OpenH264");
|
||||||
getLc().enableOpenH264(false);
|
getLc().enableDownloadOpenH264(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -691,7 +691,7 @@ public class SettingsFragment extends PreferencesListFragment {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (lc.openH264Enabled()) {
|
if (lc.downloadOpenH264Enabled()) {
|
||||||
if (pt.getMime().equals("H264") && mCodecDownloader.isCodecFound()) {
|
if (pt.getMime().equals("H264") && mCodecDownloader.isCodecFound()) {
|
||||||
codec.setSummary(mCodecDownloader.getLicenseMessage());
|
codec.setSummary(mCodecDownloader.getLicenseMessage());
|
||||||
codec.setTitle("OpenH264");
|
codec.setTitle("OpenH264");
|
||||||
|
@ -704,7 +704,7 @@ public class SettingsFragment extends PreferencesListFragment {
|
||||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||||
boolean enable = (Boolean) newValue;
|
boolean enable = (Boolean) newValue;
|
||||||
try {
|
try {
|
||||||
if (lc.openH264Enabled()) {
|
if (lc.downloadOpenH264Enabled()) {
|
||||||
if (enable && Version.getCpuAbis().contains("armeabi-v7a") && !Version.getCpuAbis().contains("x86")
|
if (enable && Version.getCpuAbis().contains("armeabi-v7a") && !Version.getCpuAbis().contains("x86")
|
||||||
&& pt.getMime().equals("H264") && !mCodecDownloader.isCodecFound()) {
|
&& pt.getMime().equals("H264") && !mCodecDownloader.isCodecFound()) {
|
||||||
mCodecDownloader.setOpenH264HelperListener(LinphoneManager.getInstance().getOpenH264HelperListener());
|
mCodecDownloader.setOpenH264HelperListener(LinphoneManager.getInstance().getOpenH264HelperListener());
|
||||||
|
|
|
@ -457,7 +457,7 @@ public class StatusFragment extends Fragment {
|
||||||
title.setVisibility(TextView.VISIBLE);
|
title.setVisibility(TextView.VISIBLE);
|
||||||
if (media != null) {
|
if (media != null) {
|
||||||
String mime = media.getMime();
|
String mime = media.getMime();
|
||||||
if (LinphoneManager.getLc().openH264Enabled() &&
|
if (LinphoneManager.getLc().downloadOpenH264Enabled() &&
|
||||||
media.getMime().equals("H264") &&
|
media.getMime().equals("H264") &&
|
||||||
LinphoneManager.getInstance().getOpenH264DownloadHelper().isCodecFound()) {
|
LinphoneManager.getInstance().getOpenH264DownloadHelper().isCodecFound()) {
|
||||||
mime = "OpenH264";
|
mime = "OpenH264";
|
||||||
|
|
|
@ -438,7 +438,7 @@ private static AssistantActivity instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void launchDownloadCodec() {
|
private void launchDownloadCodec() {
|
||||||
if (LinphoneManager.getLc().openH264Enabled()) {
|
if (LinphoneManager.getLc().downloadOpenH264Enabled()) {
|
||||||
OpenH264DownloadHelper downloadHelper = LinphoneCoreFactory.instance().createOpenH264DownloadHelper();
|
OpenH264DownloadHelper downloadHelper = LinphoneCoreFactory.instance().createOpenH264DownloadHelper();
|
||||||
if (Version.getCpuAbis().contains("armeabi-v7a") && !Version.getCpuAbis().contains("x86") && !downloadHelper.isCodecFound()) {
|
if (Version.getCpuAbis().contains("armeabi-v7a") && !Version.getCpuAbis().contains("x86") && !downloadHelper.isCodecFound()) {
|
||||||
CodecDownloaderFragment codecFragment = new CodecDownloaderFragment();
|
CodecDownloaderFragment codecFragment = new CodecDownloaderFragment();
|
||||||
|
|
Loading…
Reference in a new issue