支持导出默认配置文件

This commit is contained in:
xiongziliang
2019-12-23 15:31:35 +08:00
parent c72dd5b4c5
commit 756d10aa55
3 changed files with 19 additions and 11 deletions

View File

@@ -25,14 +25,17 @@
*/
#include <csignal>
#include <string>
#include "mediakit.h"
#ifdef _WIN32
#include "windows.h"
#else
#include "unistd.h"
#endif
using namespace std;
int main(int argc,char *argv[]){
mk_env_init1(0,0,0, nullptr,0, nullptr, nullptr);
mk_env_init1(0,0,1, (string(argv[0]) + ".ini").data(),0, nullptr, nullptr);
mk_http_server_start(80,false);
mk_rtsp_server_start(554,false);
mk_rtmp_server_start(1935,false);