| | |
| | | } |
| | | } |
| | | } else if (itor_json.name() == "cam_edit") { |
| | | string cam_idx = cfg_val["str_cam_dev_id"].asString(); |
| | | string cam_idx = ""; |
| | | if(pthis->m_GB28181_Enable){ |
| | | cam_idx = cfg_val["equipCode"].asString(); |
| | | }else{ |
| | | cam_idx = cfg_val["str_cam_dev_id"].asString(); |
| | | } |
| | | |
| | | if (pthis->m_GB28181_Enable) { |
| | | if (pthis->m_controllers_videoCapElem.find(cam_idx) != |
| | | pthis->m_controllers_videoCapElem.end()) { |
| | |
| | | } |
| | | } |
| | | } else if (itor_json.name() == "cam_del") { |
| | | string cam_idx = cfg_val["str_cam_dev_id"].asString(); |
| | | string cam_idx = ""; |
| | | if(pthis->m_GB28181_Enable){ |
| | | cam_idx = cfg_val["equipCode"].asString(); |
| | | }else{ |
| | | cam_idx = cfg_val["str_cam_dev_id"].asString(); |
| | | } |
| | | pthis->removeCamera(cam_idx); |
| | | } else if (itor_json.name() == "cam_startPublish") { |
| | | string cam_idx = cfg_val["id"].asString(); |