| | |
| | | tv_lp_calltime = findViewById(R.id.tv_lp_calltime); |
| | | setWidthHeightWithRatio(ll_video_lp_rendering, 16, 9); |
| | | |
| | | |
| | | iv_lp_screenshot.setEnabled(false); |
| | | iv_lp_unlock.setEnabled(false); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Override |
| | | public void onTick(long millisUntilFinished) { |
| | | if (!HDLLinphoneIntercomActivity.this.isFinishing()) { |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | */ |
| | | @Override |
| | | public void onFinish() { |
| | | // showToast("开锁onFinish"); |
| | | iv_lp_unlock.setEnabled(true); |
| | | } |
| | | |
| | | }; |
| | | // |
| | | } |
| | | |
| | | @Override |
| | |
| | | showToast(getString(R.string.lp_operationFailedStr)); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 开锁点击事件 |
| | |
| | | if (HDLLinphoneKit.getInstance().getOnHDLLinphoneCallListener() != null) { |
| | | HDLLinphoneKit.getInstance().getOnHDLLinphoneCallListener().onAnswerAction(); |
| | | } |
| | | |
| | | iv_lp_screenshot.setEnabled(true); |
| | | iv_lp_unlock.setEnabled(true); |
| | | } |
| | | |
| | | /****************开锁成功********/ |
| | |
| | | core.setNativePreviewWindowId(video_lp_rendering2); |
| | | // Listen for call state changes |
| | | core.addListener(mCoreListener); |
| | | core.enableMic(true);//开启麦克风 |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | video_lp_rendering = null; |
| | | video_lp_rendering2 = null; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 初始化震动器 |
| | |
| | | /** |
| | | * 关闭震动器 |
| | | */ |
| | | void cancelVibrator(){ |
| | | if(mVibrator != null){ |
| | | void cancelVibrator() { |
| | | if (mVibrator != null) { |
| | | mVibrator.cancel(); |
| | | mVibrator = null; |
| | | } |