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
84da6607
Commit
84da6607
authored
Apr 13, 2017
by
xzl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更该配置项名称
parent
e2ce16c7
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
10 行删除
+10
-10
src/MedaiFile/MediaRecorder.cpp
+1
-1
src/config.cpp
+7
-7
src/config.h
+2
-2
没有找到文件。
src/MedaiFile/MediaRecorder.cpp
查看文件 @
84da6607
...
@@ -21,7 +21,7 @@ namespace MediaFile {
...
@@ -21,7 +21,7 @@ namespace MediaFile {
MediaRecorder
::
MediaRecorder
(
const
string
&
strApp
,
const
string
&
strId
,
const
std
::
shared_ptr
<
PlayerBase
>
&
pPlayer
)
{
MediaRecorder
::
MediaRecorder
(
const
string
&
strApp
,
const
string
&
strId
,
const
std
::
shared_ptr
<
PlayerBase
>
&
pPlayer
)
{
#ifdef ENABLE_MEDIAFILE
#ifdef ENABLE_MEDIAFILE
static
string
hlsPrefix
=
mINI
::
Instance
()[
Config
::
H
ls
::
kHttpPrefix
];
static
string
hlsPrefix
=
mINI
::
Instance
()[
Config
::
H
ttp
::
kHttpPrefix
];
static
string
hlsPath
=
mINI
::
Instance
()[
Config
::
Hls
::
kFilePath
];
static
string
hlsPath
=
mINI
::
Instance
()[
Config
::
Hls
::
kFilePath
];
static
uint32_t
hlsBufSize
=
mINI
::
Instance
()[
Config
::
Hls
::
kFileBufSize
].
as
<
uint32_t
>
();
static
uint32_t
hlsBufSize
=
mINI
::
Instance
()[
Config
::
Hls
::
kFileBufSize
].
as
<
uint32_t
>
();
static
uint32_t
hlsDuration
=
mINI
::
Instance
()[
Config
::
Hls
::
kSegmentDuration
].
as
<
uint32_t
>
();
static
uint32_t
hlsDuration
=
mINI
::
Instance
()[
Config
::
Hls
::
kSegmentDuration
].
as
<
uint32_t
>
();
...
...
src/config.cpp
查看文件 @
84da6607
...
@@ -77,6 +77,12 @@ const char kRootPath[] = HTTP_FIELD"rootPath";
...
@@ -77,6 +77,12 @@ const char kRootPath[] = HTTP_FIELD"rootPath";
"</html>"
"</html>"
const
char
kNotFound
[]
=
HTTP_FIELD
"notFound"
;
const
char
kNotFound
[]
=
HTTP_FIELD
"notFound"
;
//HTTP访问url前缀
#define HTTP_PREFIX (StrPrinter << "http://" \
<< SockUtil::get_local_ip() \
<< ":" << HTTP_PORT << endl)
const
char
kHttpPrefix
[]
=
HTTP_FIELD
"httpPrefix"
;
onceToken
token
([](){
onceToken
token
([](){
mINI
::
Instance
()[
kPort
]
=
HTTP_PORT
;
mINI
::
Instance
()[
kPort
]
=
HTTP_PORT
;
mINI
::
Instance
()[
kSendBufSize
]
=
HTTP_SEND_BUF_SIZE
;
mINI
::
Instance
()[
kSendBufSize
]
=
HTTP_SEND_BUF_SIZE
;
...
@@ -87,6 +93,7 @@ onceToken token([](){
...
@@ -87,6 +93,7 @@ onceToken token([](){
mINI
::
Instance
()[
kServerName
]
=
HTTP_SERVER_NAME
;
mINI
::
Instance
()[
kServerName
]
=
HTTP_SERVER_NAME
;
mINI
::
Instance
()[
kRootPath
]
=
HTTP_ROOT_PATH
;
mINI
::
Instance
()[
kRootPath
]
=
HTTP_ROOT_PATH
;
mINI
::
Instance
()[
kNotFound
]
=
HTTP_NOT_FOUND
;
mINI
::
Instance
()[
kNotFound
]
=
HTTP_NOT_FOUND
;
mINI
::
Instance
()[
kHttpPrefix
]
=
HTTP_PREFIX
;
},
nullptr
);
},
nullptr
);
}
//namespace Http
}
//namespace Http
...
@@ -254,12 +261,6 @@ const char kSegmentNum[] = HLS_FIELD"segNum";
...
@@ -254,12 +261,6 @@ const char kSegmentNum[] = HLS_FIELD"segNum";
#define HLS_FILE_BUF_SIZE (64 * 1024)
#define HLS_FILE_BUF_SIZE (64 * 1024)
const
char
kFileBufSize
[]
=
HLS_FIELD
"fileBufSize"
;
const
char
kFileBufSize
[]
=
HLS_FIELD
"fileBufSize"
;
//HTTP访问url前缀
#define HLS_HTTP_PREFIX (StrPrinter << "http://" \
<< SockUtil::get_local_ip() \
<< ":" << HTTP_PORT << endl)
const
char
kHttpPrefix
[]
=
HLS_FIELD
"httpPrefix"
;
//录制文件路径
//录制文件路径
#define HLS_FILE_PATH (HTTP_ROOT_PATH)
#define HLS_FILE_PATH (HTTP_ROOT_PATH)
const
char
kFilePath
[]
=
HLS_FIELD
"filePath"
;
const
char
kFilePath
[]
=
HLS_FIELD
"filePath"
;
...
@@ -268,7 +269,6 @@ onceToken token([](){
...
@@ -268,7 +269,6 @@ onceToken token([](){
mINI
::
Instance
()[
kSegmentDuration
]
=
HLS_SEGMENT_DURATION
;
mINI
::
Instance
()[
kSegmentDuration
]
=
HLS_SEGMENT_DURATION
;
mINI
::
Instance
()[
kSegmentNum
]
=
HLS_SEGMENT_NUM
;
mINI
::
Instance
()[
kSegmentNum
]
=
HLS_SEGMENT_NUM
;
mINI
::
Instance
()[
kFileBufSize
]
=
HLS_FILE_BUF_SIZE
;
mINI
::
Instance
()[
kFileBufSize
]
=
HLS_FILE_BUF_SIZE
;
mINI
::
Instance
()[
kHttpPrefix
]
=
HLS_HTTP_PREFIX
;
mINI
::
Instance
()[
kFilePath
]
=
HLS_FILE_PATH
;
mINI
::
Instance
()[
kFilePath
]
=
HLS_FILE_PATH
;
},
nullptr
);
},
nullptr
);
...
...
src/config.h
查看文件 @
84da6607
...
@@ -79,6 +79,8 @@ extern const char kServerName[];
...
@@ -79,6 +79,8 @@ extern const char kServerName[];
extern
const
char
kRootPath
[];
extern
const
char
kRootPath
[];
//http 404错误提示内容
//http 404错误提示内容
extern
const
char
kNotFound
[];
extern
const
char
kNotFound
[];
//HTTP访问url前缀
extern
const
char
kHttpPrefix
[];
}
//namespace Http
}
//namespace Http
////////////SHELL配置///////////
////////////SHELL配置///////////
...
@@ -151,8 +153,6 @@ extern const char kSegmentDuration[];
...
@@ -151,8 +153,6 @@ extern const char kSegmentDuration[];
extern
const
char
kSegmentNum
[];
extern
const
char
kSegmentNum
[];
//HLS文件写缓存大小
//HLS文件写缓存大小
extern
const
char
kFileBufSize
[];
extern
const
char
kFileBufSize
[];
//HTTP访问url前缀
extern
const
char
kHttpPrefix
[];
//录制文件路径
//录制文件路径
extern
const
char
kFilePath
[];
extern
const
char
kFilePath
[];
}
//namespace Hls
}
//namespace Hls
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论