mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
文件根目录httpRoot改成www,并且自动复制到相应目录
This commit is contained in:
parent
2aec68fd6f
commit
aaab52c94f
@ -188,6 +188,10 @@ elseif(NOT ANDROID OR IOS)
|
|||||||
list(APPEND LINK_LIB_LIST pthread)
|
list(APPEND LINK_LIB_LIST pthread)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
#复制文件过来
|
||||||
|
execute_process(COMMAND cp -r ${CMAKE_CURRENT_SOURCE_DIR}/www ${EXECUTABLE_OUTPUT_PATH}/)
|
||||||
|
execute_process(COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/conf/config.ini ${EXECUTABLE_OUTPUT_PATH}/)
|
||||||
|
|
||||||
#添加c库
|
#添加c库
|
||||||
add_subdirectory(api)
|
add_subdirectory(api)
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ log=./ffmpeg/ffmpeg.log
|
|||||||
|
|
||||||
[general]
|
[general]
|
||||||
#是否启用虚拟主机
|
#是否启用虚拟主机
|
||||||
enableVhost=1
|
enableVhost=0
|
||||||
#播放器或推流器在断开后会触发hook.on_flow_report事件(使用多少流量事件),
|
#播放器或推流器在断开后会触发hook.on_flow_report事件(使用多少流量事件),
|
||||||
#flowThreshold参数控制触发hook.on_flow_report事件阈值,使用流量超过该阈值后才触发,单位KB
|
#flowThreshold参数控制触发hook.on_flow_report事件阈值,使用流量超过该阈值后才触发,单位KB
|
||||||
flowThreshold=1024
|
flowThreshold=1024
|
||||||
@ -48,7 +48,7 @@ publishToMP4=0
|
|||||||
fileBufSize=65536
|
fileBufSize=65536
|
||||||
#hls保存文件路径
|
#hls保存文件路径
|
||||||
#可以为相对(相对于本可执行程序目录)或绝对路径
|
#可以为相对(相对于本可执行程序目录)或绝对路径
|
||||||
filePath=./httpRoot
|
filePath=./www
|
||||||
#hls最大切片时间
|
#hls最大切片时间
|
||||||
segDur=2
|
segDur=2
|
||||||
#m3u8索引中,hls保留切片个数(实际保留切片个数大2~3个)
|
#m3u8索引中,hls保留切片个数(实际保留切片个数大2~3个)
|
||||||
@ -104,7 +104,7 @@ notFound=<html><head><title>404 Not Found</title></head><body bgcolor="white"><c
|
|||||||
port=80
|
port=80
|
||||||
#http文件服务器根目录
|
#http文件服务器根目录
|
||||||
#可以为相对(相对于本可执行程序目录)或绝对路径
|
#可以为相对(相对于本可执行程序目录)或绝对路径
|
||||||
rootPath=./httpRoot
|
rootPath=./www
|
||||||
#http文件服务器读文件缓存大小,单位BYTE,调整该参数可以优化文件io性能
|
#http文件服务器读文件缓存大小,单位BYTE,调整该参数可以优化文件io性能
|
||||||
sendBufSize=65536
|
sendBufSize=65536
|
||||||
#https服务器监听端口
|
#https服务器监听端口
|
||||||
@ -126,7 +126,7 @@ appName=record
|
|||||||
fileBufSize=65536
|
fileBufSize=65536
|
||||||
#mp4录制保存、mp4点播根路径
|
#mp4录制保存、mp4点播根路径
|
||||||
#可以为相对(相对于本可执行程序目录)或绝对路径
|
#可以为相对(相对于本可执行程序目录)或绝对路径
|
||||||
filePath=./httpRoot
|
filePath=./www
|
||||||
#mp4录制切片时间,单位秒
|
#mp4录制切片时间,单位秒
|
||||||
fileSecond=3600
|
fileSecond=3600
|
||||||
#mp4点播每次流化数据量,单位毫秒,
|
#mp4点播每次流化数据量,单位毫秒,
|
||||||
|
@ -126,7 +126,7 @@ onceToken token([](){
|
|||||||
mINI::Instance()[kCharSet] ="utf-8";
|
mINI::Instance()[kCharSet] ="utf-8";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mINI::Instance()[kRootPath] = "./httpRoot";
|
mINI::Instance()[kRootPath] = "./www";
|
||||||
mINI::Instance()[kNotFound] =
|
mINI::Instance()[kNotFound] =
|
||||||
"<html>"
|
"<html>"
|
||||||
"<head><title>404 Not Found</title></head>"
|
"<head><title>404 Not Found</title></head>"
|
||||||
@ -246,7 +246,7 @@ onceToken token([](){
|
|||||||
mINI::Instance()[kAppName] = "record";
|
mINI::Instance()[kAppName] = "record";
|
||||||
mINI::Instance()[kSampleMS] = 500;
|
mINI::Instance()[kSampleMS] = 500;
|
||||||
mINI::Instance()[kFileSecond] = 60*60;
|
mINI::Instance()[kFileSecond] = 60*60;
|
||||||
mINI::Instance()[kFilePath] = "./httpRoot";
|
mINI::Instance()[kFilePath] = "./www";
|
||||||
mINI::Instance()[kFileBufSize] = 64 * 1024;
|
mINI::Instance()[kFileBufSize] = 64 * 1024;
|
||||||
mINI::Instance()[kFastStart] = false;
|
mINI::Instance()[kFastStart] = false;
|
||||||
mINI::Instance()[kFileRepeat] = false;
|
mINI::Instance()[kFileRepeat] = false;
|
||||||
@ -272,7 +272,7 @@ onceToken token([](){
|
|||||||
mINI::Instance()[kSegmentNum] = 3;
|
mINI::Instance()[kSegmentNum] = 3;
|
||||||
mINI::Instance()[kSegmentRetain] = 5;
|
mINI::Instance()[kSegmentRetain] = 5;
|
||||||
mINI::Instance()[kFileBufSize] = 64 * 1024;
|
mINI::Instance()[kFileBufSize] = 64 * 1024;
|
||||||
mINI::Instance()[kFilePath] = "./httpRoot";
|
mINI::Instance()[kFilePath] = "./www";
|
||||||
},nullptr);
|
},nullptr);
|
||||||
} //namespace Hls
|
} //namespace Hls
|
||||||
|
|
||||||
|
8
www/index.html
Normal file
8
www/index.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<html>
|
||||||
|
<head><title>欢迎使用ZLMediaKit</title></head>
|
||||||
|
<body bgcolor="white">
|
||||||
|
<center><h1>欢迎使用ZLMediaKit,请阅读<a href="https://github.com/xiongziliang/ZLMediaKit/wiki" title="wiki">wiki</a> 获取更多帮助!</h1></center>
|
||||||
|
<hr>
|
||||||
|
<center>ZLMediaKit</center>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user