添加读写配置文件

This commit is contained in:
xzl 2017-05-09 16:52:31 +08:00
parent 8db012775b
commit 60590c1de7

View File

@ -26,6 +26,7 @@
#include "Thread/WorkThreadPool.h" #include "Thread/WorkThreadPool.h"
#include "Device/PlayerProxy.h" #include "Device/PlayerProxy.h"
#include "Shell/ShellSession.h" #include "Shell/ShellSession.h"
#include "Common/config.h"
#include <map> #include <map>
using namespace std; using namespace std;
using namespace ZL::Util; using namespace ZL::Util;
@ -43,7 +44,7 @@ void programExit(int arg) {
int main(int argc,char *argv[]){ int main(int argc,char *argv[]){
signal(SIGINT, programExit); signal(SIGINT, programExit);
Logger::Instance().add(std::make_shared<ConsoleChannel>("stdout", LTrace)); Logger::Instance().add(std::make_shared<ConsoleChannel>("stdout", LTrace));
Config::loaIniConfig();
//support rtmp and rtsp url //support rtmp and rtsp url
//just support H264+AAC //just support H264+AAC
auto urlList = {"rtmp://live.hkstv.hk.lxdns.com/live/hks", auto urlList = {"rtmp://live.hkstv.hk.lxdns.com/live/hks",