| | |
| | | import com.ruoyi.device.camera.domain.CameraCmd; |
| | | import com.ruoyi.device.camera.service.ICameraSdkService; |
| | | import com.ruoyi.media.service.IMediaService; |
| | | import com.ruoyi.media.service.impl.MediaServiceImpl; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | CameraCmd cmd = new CameraCmd(cameraId, chanNo); |
| | | Map<String, Object> videoCompressionCfg = cameraSdkService.getVideoCompressionCfg(cmd); |
| | | String videoEncType = (String) videoCompressionCfg.get("videoEncType"); |
| | | if (!videoEncType.equals("标准h264")) { |
| | | vtdu.setIsCode("1"); |
| | | } else { |
| | | vtdu.setIsCode("0"); |
| | | if (videoEncType != null) { |
| | | if (!videoEncType.equals("标准h264")) { |
| | | vtdu.setIsCode("1"); |
| | | } else { |
| | | vtdu.setIsCode("0"); |
| | | } |
| | | } |
| | | //流媒体不存在新增,存在更新 |
| | | if (!mediaService.checkNameExist(name)) { |