| | |
| | | initView();
|
| | | initData();
|
| | | operatePTZ();
|
| | |
|
| | | }
|
| | |
|
| | | protected void requestedOrientation(int requestedOrientation, boolean isForce) {
|
| | |
| | | deviceListBean = (DeviceDetailListData.ResponseData.DeviceListBean) bundle.getSerializable(MethodConst.ParamConst.deviceDetail);
|
| | | switchVideoList(true);
|
| | | getDeviceLocalCache();
|
| | | tvDeviceName.setText(deviceListBean.channels.get(deviceListBean.checkedChannel).channelName);
|
| | | // tvDeviceName.setText(deviceListBean.channels.get(deviceListBean.checkedChannel).channelName);
|
| | | tvDeviceName.setText(bundle.getString("titleString"));
|
| | |
|
| | | if(deviceListBean.channels.get(deviceListBean.checkedChannel).resolutions!=null&&deviceListBean.channels.get(deviceListBean.checkedChannel).resolutions.size()>0){
|
| | | showHD = false;
|
| | |
| | | llSound.setClickable(false);//声音按钮不允许点击
|
| | | LCOpenSDK_Talk.setListener(audioTalkerListener);//对讲前先设备监听
|
| | | int channelId = -1;
|
| | |
|
| | | Log.d("wxr", "startTalk: "+deviceListBean.channelNum);
|
| | | if( Integer.parseInt(deviceListBean.channelNum)> 1) {
|
| | | /* if(null != deviceListBean.channels.get(deviceListBean.checkedChannel).channelId && !"".equals(deviceListBean.channels.get(deviceListBean.checkedChannel).channelId)) {
|
| | | channelId = Integer.parseInt(deviceListBean.channels.get(deviceListBean.checkedChannel).channelId);
|
| | |
| | | finish();
|
| | | }
|
| | | }
|
| | | if (resultCode == 100 && data != null) {
|
| | | String name = data.getStringExtra(DeviceConstant.IntentKey.DHDEVICE_NEW_NAME);
|
| | | tvDeviceName.setText(name);
|
| | | deviceListBean.channels.get(deviceListBean.checkedChannel).channelName = name;
|
| | | }
|
| | | // if (resultCode == 100 && data != null) {
|
| | | // String name = data.getStringExtra(DeviceConstant.IntentKey.DHDEVICE_NEW_NAME);
|
| | | // tvDeviceName.setText(name);
|
| | | // deviceListBean.channels.get(deviceListBean.checkedChannel).channelName = name;
|
| | | // }
|
| | | }
|
| | |
|
| | |
|