替换Android MediaServer默认配置

This commit is contained in:
xiongziliang 2019-09-24 15:38:07 +08:00
parent fd89b2d0cf
commit a6574560ac

View File

@ -174,7 +174,14 @@ JNI_API(jboolean,startDemo,jstring ini_dir){
mINI::Instance()["http.sslport"] = 8443;
mINI::Instance()["rtsp.port"] = 8554;
mINI::Instance()["rtsp.sslport"] = 8332;
//如果开启hook功能那么需要修改hook地址才能使用
for(auto &pr : mINI::Instance()){
//替换hook默认地址
replace(pr.second,"https://127.0.0.1/","http://127.0.0.1:8080/");
}
//默认打开hook
mINI::Instance()["hook.enable"] = 1;
//默认打开http api调试
mINI::Instance()["api.apiDebug"] = 1;
int argc = 5;
const char *argv[] = {"","-c",ini_file.data(),"-s",pem_file.data()};