| | |
| | | timer_lp_calltime = (Chronometer) findViewById(R.id.timer_lp_calltime); |
| | | tv_lp_calltime = findViewById(R.id.tv_lp_calltime); |
| | | setWidthHeightWithRatio(ll_video_lp_rendering, 16, 9); |
| | | |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | showToast(getString(R.string.lp_operationFailedStr)); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 开锁点击事件 |
| | |
| | | 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; |
| | | } |