修复Android编译问题

This commit is contained in:
xiongziliang 2022-11-13 00:37:45 +08:00
parent 3fdd5a86c9
commit a65cc8bbfa

View File

@ -177,11 +177,11 @@ JNI_API(jboolean, startDemo, jstring ini_dir){
s_tread_id = pthread_self(); s_tread_id = pthread_self();
try { try {
//http根目录修改默认路径 //http根目录修改默认路径
mINI::Instance()[Http::kRootPath] = mINI::Instance()[Hls::kFilePath] = sd_path + "/httpRoot"; mINI::Instance()[Http::kRootPath] = sd_path + "/httpRoot";
//mp4录制点播根目录修改默认路径 //mp4录制点播根目录修改默认路径
mINI::Instance()[Record::kFilePath] = mINI::Instance()[Hls::kFilePath] = sd_path + "/httpRoot"; mINI::Instance()[Protocol::kMP4SavePath] = sd_path + "/httpRoot";
//hls根目录修改默认路径 //hls根目录修改默认路径
mINI::Instance()[Hls::kFilePath] = mINI::Instance()[Hls::kFilePath] = sd_path + "/httpRoot"; mINI::Instance()[Protocol::kHlsSavePath] = sd_path + "/httpRoot";
//替换默认端口号(在配置文件未生成时有效) //替换默认端口号(在配置文件未生成时有效)
mINI::Instance()["http.port"] = 8080; mINI::Instance()["http.port"] = 8080;
mINI::Instance()["http.sslport"] = 8443; mINI::Instance()["http.sslport"] = 8443;