Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2013-12-07 20:38:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3600be97967e7d2853c0447a520b2e332bd239dd
3600be97
1 parent
d3cee00b
add http callback in config
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
20 行增加
和
0 行删除
trunk/src/core/srs_core_config.cpp
trunk/src/core/srs_core_config.hpp
trunk/src/core/srs_core_config.cpp
查看文件 @
3600be9
...
...
@@ -475,6 +475,8 @@ int SrsConfig::reload()
srs_trace
(
"reload pithy_print success."
);
}
// TODO: suppor reload hls/forward/ffmpeg/http
return
ret
;
}
...
...
@@ -557,6 +559,22 @@ SrsConfDirective* SrsConfig::get_vhost(std::string vhost)
return
NULL
;
}
std
::
string
SrsConfig
::
get_vhost_on_connect
(
std
::
string
vhost
)
{
SrsConfDirective
*
vhost_conf
=
get_vhost
(
vhost
);
if
(
!
vhost_conf
)
{
return
""
;
}
SrsConfDirective
*
conf
=
vhost_conf
->
get
(
"on_connect"
);
if
(
!
conf
)
{
return
""
;
}
return
conf
->
arg0
();
}
bool
SrsConfig
::
get_vhost_enabled
(
std
::
string
vhost
)
{
SrsConfDirective
*
vhost_conf
=
get_vhost
(
vhost
);
...
...
@@ -1128,6 +1146,7 @@ int SrsConfig::parse_file(const char* filename)
// TODO: check hls.
// TODO: check ssl.
// TODO: check ffmpeg.
// TODO: check http.
return
ret
;
}
...
...
trunk/src/core/srs_core_config.hpp
查看文件 @
3600be9
...
...
@@ -119,6 +119,7 @@ public:
public
:
virtual
SrsConfDirective
*
get_vhost
(
std
::
string
vhost
);
virtual
bool
get_vhost_enabled
(
std
::
string
vhost
);
virtual
std
::
string
get_vhost_on_connect
(
std
::
string
vhost
);
virtual
SrsConfDirective
*
get_transcode
(
std
::
string
vhost
,
std
::
string
scope
);
virtual
bool
get_transcode_enabled
(
SrsConfDirective
*
transcode
);
virtual
std
::
string
get_transcode_ffmpeg
(
SrsConfDirective
*
transcode
);
...
...
请
注册
或
登录
后发表评论