| | |
| | | // std::string rtmpAddr = appConfig.getStringProperty("srsAddr"); |
| | | // std::string publish_basepath = rtmpAddr + "" ; |
| | | // appPref.setStringData("publish.basepath", publish_basepath); |
| | | appPref.setIntData("pulish.width", 640); |
| | | appPref.setIntData("pulish.height", 360); |
| | | // appPref.setIntData("pulish.width", 640); |
| | | // appPref.setIntData("pulish.height", 480); |
| | | } |
| | | // int arg1 = atoi(argv[1]); |
| | | // |
| | |
| | | BaseSqliteDao::setLDBTool(&ldbTool); |
| | | t_value = VssLocalSettingTblSqliteDao::instance()->findAllVssLocalSettingTblList(); |
| | | } |
| | | DBG("t_value.size():" << t_value.size()); |
| | | DBG("t_value[\"data\"].size():" << t_value["data"].size());//todo bug here t_value["data"].size() = 0 |
| | | if (t_value.size() == 1 && t_value["data"].size() > 1) { |
| | | assert("t_value.size()"); |
| | | } |
| | | if (t_value["data"].size() == 0) { |
| | | assert("t_value[\"data\"].size()"); |
| | | } |
| | | DBG(t_value["data"].begin()->toStyledString()); |
| | | auto &t_cfg = *t_value["data"].begin(); |
| | |
| | | } |
| | | DBG("test start"); |
| | | |
| | | // #todo |
| | | // BasicMsg::Nsq::NsqMsgConsumer nsqMsgConsumer("127.0.0.1", "4150", "test3", "ch2"); |
| | | // |
| | | |
| | | appPref.setStringData("user.loop.absolute.path", appConfig.getStringProperty("cutPath")); |
| | | IceRpcServer<RtspAnalysManager> server("RtspAnalysServer", appPref.getIntData("RpcVTIMPort"), "tcp"); |
| | | server.setMessageSizeMax(1024 * 1024 * 50); |