mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #293, add http flv stream
This commit is contained in:
parent
c4302b9b61
commit
eff2d81016
8 changed files with 223 additions and 17 deletions
|
@ -343,11 +343,11 @@ vhost ingest.srs.com {
|
|||
}
|
||||
}
|
||||
|
||||
# vhost for http server config in each vhost.
|
||||
vhost http.srs.com {
|
||||
# http vhost specified config
|
||||
# vhost for http static and flv vod stream for each vhost.
|
||||
vhost http.static.srs.com {
|
||||
# http static vhost specified config
|
||||
http {
|
||||
# whether enabled the http streaming service for vhost.
|
||||
# whether enabled the http static service for vhost.
|
||||
# default: off
|
||||
enabled on;
|
||||
# the virtual directory root for this vhost to mount at
|
||||
|
@ -364,6 +364,24 @@ vhost http.srs.com {
|
|||
}
|
||||
}
|
||||
|
||||
# vhost for http flv live stream for each vhost.
|
||||
vhost http.flv.srs.com {
|
||||
# http flv stream vhost specified config
|
||||
http_flv {
|
||||
# whether enable the http flv live streaming service for vhost.
|
||||
# default: off
|
||||
enabled on;
|
||||
# the stream mout for rtmp to remux to flv live streaming.
|
||||
# for example, if mount to [vhost]/[app]/[stream].flv, user access by http://[vhost]/[app]/[stream].flv
|
||||
# the variables:
|
||||
# [vhost] current vhost for http flv live stream.
|
||||
# [app] current app for http flv live stream.
|
||||
# [stream] current stream for http flv live stream.
|
||||
# default: [vhost]/[app]/[stream].flv
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
}
|
||||
|
||||
# the vhost with hls specified.
|
||||
vhost with-hls.srs.com {
|
||||
hls {
|
||||
|
|
17
trunk/conf/http.flv.live.conf
Normal file
17
trunk/conf/http.flv.live.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
# the config for srs to remux rtmp to flv live stream.
|
||||
# @see https://github.com/winlinvip/simple-rtmp-server/wiki/v2_CN_DeliveryHttpFlvStream
|
||||
# @see full.conf for detail config.
|
||||
|
||||
listen 1935;
|
||||
max_connections 1000;
|
||||
http_stream {
|
||||
enabled on;
|
||||
listen 8080;
|
||||
dir ./objs/nginx/html;
|
||||
}
|
||||
vhost __defaultVhost__ {
|
||||
http_flv {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue