Linphone探索:5 . 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)

转载于:https://blog.csdn.net/u012812482/article/details/51691752

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值