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
2015-01-22 09:34:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
25807298adca8e45b6e9b3bf9144c99626c9eb25
25807298
1 parent
7305fa6f
alias http_stream to http_server. rename http to http_static of vhost. rename http_flv to http_renux
显示空白字符变更
内嵌
并排对比
正在显示
16 个修改的文件
包含
101 行增加
和
64 行删除
trunk/conf/console.conf
trunk/conf/demo.conf
trunk/conf/full.conf
trunk/conf/http.aac.live.conf
trunk/conf/http.flv.live.conf
trunk/conf/http.hls.conf
trunk/conf/http.mp3.live.conf
trunk/conf/http.server.conf
trunk/conf/srs.conf
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_config.hpp
trunk/src/app/srs_app_http_conn.cpp
trunk/src/app/srs_app_http_conn.hpp
trunk/src/app/srs_app_reload.cpp
trunk/src/app/srs_app_reload.hpp
trunk/src/kernel/srs_kernel_error.hpp
trunk/conf/console.conf
查看文件 @
2580729
...
...
@@ -9,7 +9,7 @@ http_api {
enabled
on
;
listen
1985
;
}
http_s
tream
{
http_s
erver
{
enabled
on
;
listen
8080
;
}
...
...
trunk/conf/demo.conf
查看文件 @
2580729
...
...
@@ -17,7 +17,7 @@ http_api {
listen
1985
;
}
http_s
tream
{
http_s
erver
{
enabled
on
;
listen
8080
;
dir
./
objs
/
nginx
/
html
;
...
...
trunk/conf/full.conf
查看文件 @
2580729
...
...
@@ -120,7 +120,7 @@ http_api {
# which will show srs version and welcome to srs.
# @remark, the http embeded stream need to config the vhost, for instance, the __defaultVhost__
# need to open the feature http of vhost.
http_s
tream
{
http_s
erver
{
# whether http streaming service is enabled.
# default: off
enabled
on
;
...
...
@@ -355,7 +355,7 @@ vhost http.static.srs.com {
# the variables:
# [vhost] current vhost for http server.
# @remark the [vhost] is optional, used to mount at specified vhost.
# @remark the http of __defaultVhost__ will override the http_s
tream
section.
# @remark the http of __defaultVhost__ will override the http_s
erver
section.
# for example:
# mount to [vhost]/
# access by http://ossrs.net:8080/xxx.html
...
...
@@ -367,7 +367,7 @@ vhost http.static.srs.com {
# mount to /hls
# access by http://ossrs.net:8080/hls/xxx.html
# or by http://192.168.1.173:8080/hls/xxx.html
# @remark the port of http is specified by http_s
tream
section.
# @remark the port of http is specified by http_s
erver
section.
# default: [vhost]/
mount
[
vhost
]/
hls
;
# main dir of vhost,
...
...
@@ -378,9 +378,9 @@ vhost http.static.srs.com {
}
# vhost for http flv/aac/mp3 live stream for each vhost.
vhost
http
.
flv
.
srs
.
com
{
vhost
http
.
remux
.
srs
.
com
{
# http flv/mp3/aac stream vhost specified config
http_
flv
{
http_
remux
{
# whether enable the http flv live streaming service for vhost.
# default: off
enabled
on
;
...
...
@@ -410,7 +410,7 @@ vhost http.flv.srs.com {
# access by http://ossrs.net:8080/live/livestream.mp3
# mount to [vhost]/[app]/[stream].aac
# access by http://ossrs.net:8080/live/livestream.aac
# @remark the port of http is specified by http_s
tream
section.
# @remark the port of http is specified by http_s
erver
section.
# default: [vhost]/[app]/[stream].flv
mount
[
vhost
]/[
app
]/[
stream
].
flv
;
}
...
...
trunk/conf/http.aac.live.conf
查看文件 @
2580729
...
...
@@ -4,13 +4,13 @@
listen
1935
;
max_connections
1000
;
http_s
tream
{
http_s
erver
{
enabled
on
;
listen
8080
;
dir
./
objs
/
nginx
/
html
;
}
vhost
__
defaultVhost__
{
http_
flv
{
http_
remux
{
enabled
on
;
fast_cache
30
;
mount
[
vhost
]/[
app
]/[
stream
].
aac
;
...
...
trunk/conf/http.flv.live.conf
查看文件 @
2580729
...
...
@@ -4,13 +4,13 @@
listen
1935
;
max_connections
1000
;
http_s
tream
{
http_s
erver
{
enabled
on
;
listen
8080
;
dir
./
objs
/
nginx
/
html
;
}
vhost
__
defaultVhost__
{
http_
flv
{
http_
remux
{
enabled
on
;
mount
[
vhost
]/[
app
]/[
stream
].
flv
;
}
...
...
trunk/conf/http.hls.conf
查看文件 @
2580729
...
...
@@ -4,7 +4,7 @@
listen
1935
;
max_connections
1000
;
http_s
tream
{
http_s
erver
{
enabled
on
;
listen
8080
;
dir
./
objs
/
nginx
/
html
;
...
...
trunk/conf/http.mp3.live.conf
查看文件 @
2580729
...
...
@@ -4,13 +4,13 @@
listen
1935
;
max_connections
1000
;
http_s
tream
{
http_s
erver
{
enabled
on
;
listen
8080
;
dir
./
objs
/
nginx
/
html
;
}
vhost
__
defaultVhost__
{
http_
flv
{
http_
remux
{
enabled
on
;
fast_cache
30
;
mount
[
vhost
]/[
app
]/[
stream
].
mp3
;
...
...
trunk/conf/http.server.conf
查看文件 @
2580729
...
...
@@ -3,7 +3,7 @@
listen
1935
;
max_connections
1000
;
http_s
tream
{
http_s
erver
{
enabled
on
;
listen
8080
;
dir
./
objs
/
nginx
/
html
;
...
...
trunk/conf/srs.conf
查看文件 @
2580729
...
...
@@ -9,7 +9,7 @@ http_api {
enabled
on
;
listen
1985
;
}
http_s
tream
{
http_s
erver
{
enabled
on
;
listen
8080
;
dir
./
objs
/
nginx
/
html
;
...
...
trunk/src/app/srs_app_config.cpp
查看文件 @
2580729
...
...
@@ -606,7 +606,16 @@ int SrsConfig::reload_http_stream(SrsConfDirective* old_root)
// ENABLED => ENABLED (modified)
SrsConfDirective
*
new_http_stream
=
root
->
get
(
"http_stream"
);
// http_stream rename to http_server in SRS2.
if
(
!
new_http_stream
)
{
new_http_stream
=
root
->
get
(
"http_server"
);
}
SrsConfDirective
*
old_http_stream
=
old_root
->
get
(
"http_stream"
);
// http_stream rename to http_server in SRS2.
if
(
!
old_http_stream
)
{
old_http_stream
=
root
->
get
(
"http_server"
);
}
// DISABLED => ENABLED
if
(
!
get_http_stream_enabled
(
old_http_stream
)
&&
get_http_stream_enabled
(
new_http_stream
))
{
...
...
@@ -876,16 +885,28 @@ int SrsConfig::reload_vhost(SrsConfDirective* old_root)
}
srs_trace
(
"vhost %s reload http success."
,
vhost
.
c_str
());
}
// http_flv, only one per vhost.
if
(
!
srs_directive_equals
(
new_vhost
->
get
(
"http_flv"
),
old_vhost
->
get
(
"http_flv"
)))
{
// http_static, only one per vhost.
// @remark, http_static introduced as alias of http.
if
(
!
srs_directive_equals
(
new_vhost
->
get
(
"http_static"
),
old_vhost
->
get
(
"http_static"
)))
{
for
(
it
=
subscribes
.
begin
();
it
!=
subscribes
.
end
();
++
it
)
{
ISrsReloadHandler
*
subscribe
=
*
it
;
if
((
ret
=
subscribe
->
on_reload_vhost_http_flv_updated
())
!=
ERROR_SUCCESS
)
{
srs_error
(
"vhost %s notify subscribes http_flv failed. ret=%d"
,
vhost
.
c_str
(),
ret
);
if
((
ret
=
subscribe
->
on_reload_vhost_http_updated
())
!=
ERROR_SUCCESS
)
{
srs_error
(
"vhost %s notify subscribes http_static failed. ret=%d"
,
vhost
.
c_str
(),
ret
);
return
ret
;
}
}
srs_trace
(
"vhost %s reload http_flv success."
,
vhost
.
c_str
());
srs_trace
(
"vhost %s reload http_static success."
,
vhost
.
c_str
());
}
// http_remux, only one per vhost.
if
(
!
srs_directive_equals
(
new_vhost
->
get
(
"http_remux"
),
old_vhost
->
get
(
"http_remux"
)))
{
for
(
it
=
subscribes
.
begin
();
it
!=
subscribes
.
end
();
++
it
)
{
ISrsReloadHandler
*
subscribe
=
*
it
;
if
((
ret
=
subscribe
->
on_reload_vhost_http_remux_updated
())
!=
ERROR_SUCCESS
)
{
srs_error
(
"vhost %s notify subscribes http_remux failed. ret=%d"
,
vhost
.
c_str
(),
ret
);
return
ret
;
}
}
srs_trace
(
"vhost %s reload http_remux success."
,
vhost
.
c_str
());
}
// transcode, many per vhost.
if
((
ret
=
reload_transcode
(
new_vhost
,
old_vhost
))
!=
ERROR_SUCCESS
)
{
...
...
@@ -1293,8 +1314,8 @@ int SrsConfig::check_config()
if
(
n
!=
"listen"
&&
n
!=
"pid"
&&
n
!=
"chunk_size"
&&
n
!=
"ff_log_dir"
&&
n
!=
"srs_log_tank"
&&
n
!=
"srs_log_level"
&&
n
!=
"srs_log_file"
&&
n
!=
"max_connections"
&&
n
!=
"daemon"
&&
n
!=
"heartbeat"
&&
n
!=
"http_api"
&&
n
!=
"http_stream"
&&
n
!=
"stats"
&&
n
!=
"vhost"
&&
n
!=
"pithy_print"
)
&&
n
!=
"http_api"
&&
n
!=
"stats"
&&
n
!=
"vhost"
&&
n
!=
"pithy_print"
&&
n
!=
"http_stream"
&&
n
!=
"http_server"
)
{
ret
=
ERROR_SYSTEM_CONFIG_INVALID
;
srs_error
(
"unsupported directive %s, ret=%d"
,
n
.
c_str
(),
ret
);
...
...
@@ -1367,7 +1388,7 @@ int SrsConfig::check_config()
string
n
=
conf
->
name
;
if
(
n
!=
"enabled"
&&
n
!=
"chunk_size"
&&
n
!=
"mode"
&&
n
!=
"origin"
&&
n
!=
"token_traverse"
&&
n
!=
"dvr"
&&
n
!=
"ingest"
&&
n
!=
"h
ttp"
&&
n
!=
"h
ls"
&&
n
!=
"http_hooks"
&&
n
!=
"dvr"
&&
n
!=
"ingest"
&&
n
!=
"hls"
&&
n
!=
"http_hooks"
&&
n
!=
"gop_cache"
&&
n
!=
"queue_length"
&&
n
!=
"refer"
&&
n
!=
"refer_publish"
&&
n
!=
"refer_play"
&&
n
!=
"forward"
&&
n
!=
"transcode"
&&
n
!=
"bandcheck"
...
...
@@ -1375,7 +1396,8 @@ int SrsConfig::check_config()
&&
n
!=
"atc"
&&
n
!=
"atc_auto"
&&
n
!=
"debug_srs_upnode"
&&
n
!=
"mr"
&&
n
!=
"mw_latency"
&&
n
!=
"min_latency"
&&
n
!=
"security"
&&
n
!=
"http_flv"
&&
n
!=
"security"
&&
n
!=
"http_remux"
&&
n
!=
"http"
&&
n
!=
"http_static"
)
{
ret
=
ERROR_SYSTEM_CONFIG_INVALID
;
srs_error
(
"unsupported vhost directive %s, ret=%d"
,
n
.
c_str
(),
ret
);
...
...
@@ -1414,7 +1436,7 @@ int SrsConfig::check_config()
return
ret
;
}
}
}
else
if
(
n
==
"http"
)
{
}
else
if
(
n
==
"http"
||
n
==
"http_static"
)
{
for
(
int
j
=
0
;
j
<
(
int
)
conf
->
directives
.
size
();
j
++
)
{
string
m
=
conf
->
at
(
j
)
->
name
.
c_str
();
if
(
m
!=
"enabled"
&&
m
!=
"mount"
&&
m
!=
"dir"
)
{
...
...
@@ -1423,12 +1445,12 @@ int SrsConfig::check_config()
return
ret
;
}
}
}
else
if
(
n
==
"http_
flv
"
)
{
}
else
if
(
n
==
"http_
remux
"
)
{
for
(
int
j
=
0
;
j
<
(
int
)
conf
->
directives
.
size
();
j
++
)
{
string
m
=
conf
->
at
(
j
)
->
name
.
c_str
();
if
(
m
!=
"enabled"
&&
m
!=
"mount"
&&
m
!=
"fast_cache"
)
{
ret
=
ERROR_SYSTEM_CONFIG_INVALID
;
srs_error
(
"unsupported vhost http_
flv
directive %s, ret=%d"
,
m
.
c_str
(),
ret
);
srs_error
(
"unsupported vhost http_
remux
directive %s, ret=%d"
,
m
.
c_str
(),
ret
);
return
ret
;
}
}
...
...
@@ -3329,7 +3351,13 @@ bool SrsConfig::get_http_stream_enabled()
SrsConfDirective
*
SrsConfig
::
get_http_stream
()
{
return
root
->
get
(
"http_stream"
);
SrsConfDirective
*
conf
=
root
->
get
(
"http_stream"
);
// http_stream renamed to http_server in SRS2.
if
(
!
conf
)
{
conf
=
root
->
get
(
"http_server"
);
}
return
conf
;
}
bool
SrsConfig
::
get_http_stream_enabled
(
SrsConfDirective
*
conf
)
...
...
@@ -3383,15 +3411,18 @@ string SrsConfig::get_http_stream_dir()
bool
SrsConfig
::
get_vhost_http_enabled
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
if
(
!
conf
)
{
SrsConfDirective
*
vconf
=
get_vhost
(
vhost
);
if
(
!
vconf
)
{
return
false
;
}
conf
=
conf
->
get
(
"http"
);
SrsConfDirective
*
conf
=
vconf
->
get
(
"http"
);
if
(
!
conf
)
{
conf
=
vconf
->
get
(
"http_static"
);
if
(
!
conf
)
{
return
false
;
}
}
conf
=
conf
->
get
(
"enabled"
);
if
(
!
conf
)
{
...
...
@@ -3407,15 +3438,18 @@ bool SrsConfig::get_vhost_http_enabled(string vhost)
string
SrsConfig
::
get_vhost_http_mount
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
if
(
!
conf
)
{
SrsConfDirective
*
vconf
=
get_vhost
(
vhost
);
if
(
!
vconf
)
{
return
SRS_CONF_DEFAULT_HTTP_MOUNT
;
}
conf
=
conf
->
get
(
"http"
);
SrsConfDirective
*
conf
=
vconf
->
get
(
"http"
);
if
(
!
conf
)
{
conf
=
vconf
->
get
(
"http_static"
);
if
(
!
conf
)
{
return
SRS_CONF_DEFAULT_HTTP_MOUNT
;
}
}
conf
=
conf
->
get
(
"mount"
);
if
(
!
conf
||
conf
->
arg0
().
empty
())
{
...
...
@@ -3427,15 +3461,18 @@ string SrsConfig::get_vhost_http_mount(string vhost)
string
SrsConfig
::
get_vhost_http_dir
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
if
(
!
conf
)
{
SrsConfDirective
*
vconf
=
get_vhost
(
vhost
);
if
(
!
vconf
)
{
return
SRS_CONF_DEFAULT_HTTP_DIR
;
}
conf
=
conf
->
get
(
"http"
);
SrsConfDirective
*
conf
=
vconf
->
get
(
"http"
);
if
(
!
conf
)
{
conf
=
vconf
->
get
(
"http_static"
);
if
(
!
conf
)
{
return
SRS_CONF_DEFAULT_HTTP_DIR
;
}
}
conf
=
conf
->
get
(
"dir"
);
if
(
!
conf
||
conf
->
arg0
().
empty
())
{
...
...
@@ -3445,14 +3482,14 @@ string SrsConfig::get_vhost_http_dir(string vhost)
return
conf
->
arg0
();
}
bool
SrsConfig
::
get_vhost_http_
flv
_enabled
(
string
vhost
)
bool
SrsConfig
::
get_vhost_http_
remux
_enabled
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
if
(
!
conf
)
{
return
false
;
}
conf
=
conf
->
get
(
"http_
flv
"
);
conf
=
conf
->
get
(
"http_
remux
"
);
if
(
!
conf
)
{
return
false
;
}
...
...
@@ -3469,14 +3506,14 @@ bool SrsConfig::get_vhost_http_flv_enabled(string vhost)
return
false
;
}
double
SrsConfig
::
get_vhost_http_
flv
_fast_cache
(
string
vhost
)
double
SrsConfig
::
get_vhost_http_
remux
_fast_cache
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
if
(
!
conf
)
{
return
SRS_CONF_DEFAULT_HTTP_AUDIO_FAST_CACHE
;
}
conf
=
conf
->
get
(
"http_
flv
"
);
conf
=
conf
->
get
(
"http_
remux
"
);
if
(
!
conf
)
{
return
SRS_CONF_DEFAULT_HTTP_AUDIO_FAST_CACHE
;
}
...
...
@@ -3493,21 +3530,21 @@ double SrsConfig::get_vhost_http_flv_fast_cache(string vhost)
return
::
atof
(
conf
->
arg0
().
c_str
());
}
string
SrsConfig
::
get_vhost_http_
flv
_mount
(
string
vhost
)
string
SrsConfig
::
get_vhost_http_
remux
_mount
(
string
vhost
)
{
SrsConfDirective
*
conf
=
get_vhost
(
vhost
);
if
(
!
conf
)
{
return
SRS_CONF_DEFAULT_HTTP_
FLV
_MOUNT
;
return
SRS_CONF_DEFAULT_HTTP_
REMUX
_MOUNT
;
}
conf
=
conf
->
get
(
"http_
flv
"
);
conf
=
conf
->
get
(
"http_
remux
"
);
if
(
!
conf
)
{
return
SRS_CONF_DEFAULT_HTTP_
FLV
_MOUNT
;
return
SRS_CONF_DEFAULT_HTTP_
REMUX
_MOUNT
;
}
conf
=
conf
->
get
(
"mount"
);
if
(
!
conf
||
conf
->
arg0
().
empty
())
{
return
SRS_CONF_DEFAULT_HTTP_
FLV
_MOUNT
;
return
SRS_CONF_DEFAULT_HTTP_
REMUX
_MOUNT
;
}
return
conf
->
arg0
();
...
...
trunk/src/app/srs_app_config.hpp
查看文件 @
2580729
...
...
@@ -66,7 +66,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define SRS_CONF_DEFAULT_BANDWIDTH_LIMIT_KBPS 1000
#define SRS_CONF_DEFAULT_HTTP_MOUNT "[vhost]/"
#define SRS_CONF_DEFAULT_HTTP_
FLV
_MOUNT "[vhost]/[app]/[stream].flv"
#define SRS_CONF_DEFAULT_HTTP_
REMUX
_MOUNT "[vhost]/[app]/[stream].flv"
#define SRS_CONF_DEFAULT_HTTP_DIR SRS_CONF_DEFAULT_HLS_PATH
#define SRS_CONF_DEFAULT_HTTP_AUDIO_FAST_CACHE 30
...
...
@@ -970,16 +970,16 @@ public:
/**
* get whether vhost enabled http flv live stream
*/
virtual
bool
get_vhost_http_
flv
_enabled
(
std
::
string
vhost
);
virtual
bool
get_vhost_http_
remux
_enabled
(
std
::
string
vhost
);
/**
* get the fast cache duration for http audio live stream.
*/
virtual
double
get_vhost_http_
flv
_fast_cache
(
std
::
string
vhost
);
virtual
double
get_vhost_http_
remux
_fast_cache
(
std
::
string
vhost
);
/**
* get the http flv live stream mount point for vhost.
* used to generate the flv stream mount path.
*/
virtual
std
::
string
get_vhost_http_
flv
_mount
(
std
::
string
vhost
);
virtual
std
::
string
get_vhost_http_
remux
_mount
(
std
::
string
vhost
);
// http heartbeart section
private:
/**
...
...
trunk/src/app/srs_app_http_conn.cpp
查看文件 @
2580729
...
...
@@ -68,7 +68,7 @@ int SrsVodStream::serve_flv_stream(ISrsGoHttpResponseWriter* w, SrsHttpMessage*
}
if
(
offset
>
fs
.
filesize
())
{
ret
=
ERROR_HTTP_
FLV
_OFFSET_OVERFLOW
;
ret
=
ERROR_HTTP_
REMUX
_OFFSET_OVERFLOW
;
srs_warn
(
"http flv streaming %s overflow. size=%"
PRId64
", offset=%d, ret=%d"
,
fullpath
.
c_str
(),
fs
.
filesize
(),
offset
,
ret
);
return
ret
;
...
...
@@ -100,7 +100,7 @@ int SrsVodStream::serve_flv_stream(ISrsGoHttpResponseWriter* w, SrsHttpMessage*
return
ret
;
}
if
(
sh_size
<=
0
)
{
ret
=
ERROR_HTTP_
FLV
_SEQUENCE_HEADER
;
ret
=
ERROR_HTTP_
REMUX
_SEQUENCE_HEADER
;
srs_warn
(
"http flv streaming no sequence header. size=%d, ret=%d"
,
sh_size
,
ret
);
return
ret
;
}
...
...
@@ -171,7 +171,7 @@ int SrsStreamCache::dump_cache(SrsConsumer* consumer)
}
srs_trace
(
"http: dump cache %d msgs, duration=%dms, cache=%.2fs"
,
queue
->
size
(),
queue
->
duration
(),
_srs_config
->
get_vhost_http_
flv
_fast_cache
(
req
->
vhost
));
queue
->
size
(),
queue
->
duration
(),
_srs_config
->
get_vhost_http_
remux
_fast_cache
(
req
->
vhost
));
return
ret
;
}
...
...
@@ -191,7 +191,7 @@ int SrsStreamCache::cycle()
// TODO: FIMXE: add pithy print.
// TODO: FIXME: support reload.
queue
->
set_queue_size
(
_srs_config
->
get_vhost_http_
flv
_fast_cache
(
req
->
vhost
));
queue
->
set_queue_size
(
_srs_config
->
get_vhost_http_
remux
_fast_cache
(
req
->
vhost
));
while
(
true
)
{
// get messages from consumer.
...
...
@@ -656,7 +656,7 @@ int SrsHttpServer::on_reload_vhost_http_updated()
return
ret
;
}
int
SrsHttpServer
::
on_reload_vhost_http_
flv
_updated
()
int
SrsHttpServer
::
on_reload_vhost_http_
remux
_updated
()
{
int
ret
=
ERROR_SUCCESS
;
// TODO: FIXME: implements it.
...
...
@@ -737,13 +737,13 @@ int SrsHttpServer::mount_flv_streaming()
}
std
::
string
vhost
=
conf
->
arg0
();
if
(
!
_srs_config
->
get_vhost_http_
flv
_enabled
(
vhost
))
{
if
(
!
_srs_config
->
get_vhost_http_
remux
_enabled
(
vhost
))
{
continue
;
}
SrsLiveEntry
*
entry
=
new
SrsLiveEntry
();
entry
->
vhost
=
vhost
;
entry
->
mount
=
_srs_config
->
get_vhost_http_
flv
_mount
(
vhost
);
entry
->
mount
=
_srs_config
->
get_vhost_http_
remux
_mount
(
vhost
);
flvs
[
vhost
]
=
entry
;
srs_trace
(
"http flv live stream, vhost=%s, mount=%s"
,
vhost
.
c_str
(),
entry
->
mount
.
c_str
());
...
...
trunk/src/app/srs_app_http_conn.hpp
查看文件 @
2580729
...
...
@@ -259,7 +259,7 @@ public:
// interface ISrsThreadHandler.
public:
virtual
int
on_reload_vhost_http_updated
();
virtual
int
on_reload_vhost_http_
flv
_updated
();
virtual
int
on_reload_vhost_http_
remux
_updated
();
private
:
virtual
int
mount_static_file
();
virtual
int
mount_flv_streaming
();
...
...
trunk/src/app/srs_app_reload.cpp
查看文件 @
2580729
...
...
@@ -95,7 +95,7 @@ int ISrsReloadHandler::on_reload_vhost_http_updated()
return
ERROR_SUCCESS
;
}
int
ISrsReloadHandler
::
on_reload_vhost_http_
flv
_updated
()
int
ISrsReloadHandler
::
on_reload_vhost_http_
remux
_updated
()
{
return
ERROR_SUCCESS
;
}
...
...
trunk/src/app/srs_app_reload.hpp
查看文件 @
2580729
...
...
@@ -56,7 +56,7 @@ public:
virtual
int
on_reload_http_stream_disabled
();
virtual
int
on_reload_http_stream_updated
();
virtual
int
on_reload_vhost_http_updated
();
virtual
int
on_reload_vhost_http_
flv
_updated
();
virtual
int
on_reload_vhost_http_
remux
_updated
();
virtual
int
on_reload_vhost_added
(
std
::
string
vhost
);
virtual
int
on_reload_vhost_removed
(
std
::
string
vhost
);
virtual
int
on_reload_vhost_atc
(
std
::
string
vhost
);
...
...
trunk/src/kernel/srs_kernel_error.hpp
查看文件 @
2580729
...
...
@@ -166,8 +166,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define ERROR_HTTP_HANDLER_MATCH_URL 3010
#define ERROR_HTTP_HANDLER_INVALID 3011
#define ERROR_HTTP_API_LOGS 3012
#define ERROR_HTTP_FLV_SEQUENCE_HEADER 3013
#define ERROR_HTTP_FLV_OFFSET_OVERFLOW 3014
#define ERROR_HTTP_REMUX_SEQUENCE_HEADER 3013
#define ERROR_HTTP_REMUX_OFFSET_OVERFLOW 3014
#define ERROR_ENCODER_VCODEC 3015
#define ERROR_ENCODER_OUTPUT 3016
#define ERROR_ENCODER_ACHANNELS 3017
...
...
请
注册
或
登录
后发表评论