智能会议系统(16)---Linphone配置大全

Linphone配置大全

1. 自动接听电话:

non_localizable_custom.xml

<bool name="auto_answer_calls">false</bool>
  • 2. 在第一次启动应用程序的时候跳转到登陆界面

LinphoneActivity.java

//      boolean useFirstLoginActivity = getResources().getBoolean(R.bool.display_account_wizard_at_first_start);
//      if (LinphonePreferences.instance().isProvisioningLoginViewEnabled()) {
//          Intent wizard = new Intent();
//          wizard.setClass(this, RemoteProvisioningLoginActivity.class);
//          wizard.putExtra("Domain", LinphoneManager.getInstance().wizardLoginViewDomain);
//          startActivityForResult(wizard, REMOTE_PROVISIONING_LOGIN_ACTIVITY);
//      } else if (useFirstLoginActivity && LinphonePreferences.instance().isFirstLaunch() || LinphoneManager.getLc().getProxyConfigList().length == 0) {
//          if (LinphonePreferences.instance().getAccountCount() > 0) {
//              LinphonePreferences.instance().firstLaunchSuccessful();
//          } else {
//              startActivityForResult(new Intent().setClass(this, AssistantActivity.class), FIRST_LOGIN_ACTIVITY);
//          }
//      }

3.设置自动以视频方式接听电话

LinphonePreferences.instance().setAutomaticallyAcceptVideoRequests(true);
  • 4.设置发起的通话为视频通话
LinphonePreferences.instance().setInitiateVideoCall(true)
  • 5.设置允许视频通话
LinphonePreferences.instance().setDebugEnabled(true);
  • 6.设置最大同时通话数量
LinphoneManager.getLc().setMaxCalls(数量);
  • 7.与服务器的心跳包间隔时间

/res/raw/linphonerc_default 文件

keepalive_period=30000
  • 8.打开和关闭linphone的调试Debug开关
LinphonePreferences.instance().setDebugEnabled(false)

猜你喜欢

转载自blog.csdn.net/zhangbijun1230/article/details/81773726