Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
aaab52c9
Commit
aaab52c9
authored
Dec 27, 2019
by
xiongziliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件根目录httpRoot改成www,并且自动复制到相应目录
parent
2aec68fd
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
20 行增加
和
7 行删除
+20
-7
CMakeLists.txt
+4
-0
conf/config.ini
+4
-4
src/Common/config.cpp
+3
-3
www/index.html
+9
-0
没有找到文件。
CMakeLists.txt
查看文件 @
aaab52c9
...
@@ -188,6 +188,10 @@ elseif(NOT ANDROID OR IOS)
...
@@ -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
)
...
...
conf/config.ini
查看文件 @
aaab52c9
...
@@ -16,7 +16,7 @@ log=./ffmpeg/ffmpeg.log
...
@@ -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
...
@@ -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
...
@@ -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
...
@@ -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点播每次流化数据量,单位毫秒,
...
...
src/Common/config.cpp
查看文件 @
aaab52c9
...
@@ -126,7 +126,7 @@ onceToken token([](){
...
@@ -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([](){
...
@@ -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([](){
...
@@ -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
...
...
www/index.html
0 → 100644
查看文件 @
aaab52c9
<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>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论