|  |  |  | 
|---|
|  |  |  | List<Vtdu> list = vtduService.selectVtduList(vtdu); | 
|---|
|  |  |  | return getDataTable(list); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 查询流媒体管理列表(不校验权限) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("/list/noPerm") | 
|---|
|  |  |  | public TableDataInfo listNoPerm(Vtdu vtdu) { | 
|---|
|  |  |  | startPage(); | 
|---|
|  |  |  | List<Vtdu> list = vtduService.selectVtduList(vtdu); | 
|---|
|  |  |  | return getDataTable(list); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 导出流媒体管理列表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return success(vtdu); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 获取流媒体管理详细信息(不校验权限) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping(value = "/{name}/noPerm") | 
|---|
|  |  |  | public AjaxResult getInfoNoPerm(@PathVariable("name") String name) { | 
|---|
|  |  |  | Vtdu vtdu = vtduService.selectVtduByName(name); | 
|---|
|  |  |  | if (vtdu != null) { | 
|---|
|  |  |  | String cameraId = name.split("_")[0]; | 
|---|
|  |  |  | Integer chanNo = Integer.valueOf(name.split("_")[1]); | 
|---|
|  |  |  | CameraCmd cmd = new CameraCmd(cameraId, chanNo); | 
|---|
|  |  |  | Map<String, Object> videoCompressionCfg = cameraSdkService.getVideoCompressionCfg(cmd); | 
|---|
|  |  |  | String videoEncType = (String) videoCompressionCfg.get("videoEncType"); | 
|---|
|  |  |  | if (videoEncType != null) { | 
|---|
|  |  |  | if (!videoEncType.equals("标准h264")) { | 
|---|
|  |  |  | vtdu.setIsCode("1"); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | vtdu.setIsCode("0"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | else | 
|---|
|  |  |  | { | 
|---|
|  |  |  | vtdu.setIsCode("0"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //流媒体不存在新增,存在更新 | 
|---|
|  |  |  | if (!mediaService.checkNameExist(name)) { | 
|---|
|  |  |  | mediaService.addPath(name, vtdu.getRtspSource(), vtdu.getMode(), vtdu.getIsCode()); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | vtduService.updateVtdu(vtdu); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return success(vtdu); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 新增流媒体管理 | 
|---|
|  |  |  | */ | 
|---|