mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #293, support http live flv/aac/mp3 stream with fast cache. 2.0.100.
This commit is contained in:
parent
29a8932b49
commit
b7b268dfbf
9 changed files with 87 additions and 8 deletions
|
@ -371,12 +371,21 @@ vhost http.flv.srs.com {
|
|||
# whether enable the http flv live streaming service for vhost.
|
||||
# default: off
|
||||
enabled on;
|
||||
# the fast cache for audio stream(mp3/aac),
|
||||
# to cache more audio and send to client in a time to make android(weixin) happy.
|
||||
# @remark the flv stream ignore it
|
||||
# default: 30
|
||||
fast_cache 30;
|
||||
# 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.
|
||||
# the extension:
|
||||
# .flv mount http live flv stream, use default gop cache.
|
||||
# .mp3 mount http live mp3 stream, ignore video and audio mp3 codec required.
|
||||
# .aac mount http live aac stream, ignore video and audio aac codec required.
|
||||
# default: [vhost]/[app]/[stream].flv
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
}
|
||||
|
|
18
trunk/conf/http.aac.live.conf
Normal file
18
trunk/conf/http.aac.live.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
# the config for srs to remux rtmp to aac 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;
|
||||
fast_cache 30;
|
||||
mount [vhost]/[app]/[stream].aac;
|
||||
}
|
||||
}
|
18
trunk/conf/http.mp3.live.conf
Normal file
18
trunk/conf/http.mp3.live.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
# the config for srs to remux rtmp to mp3 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;
|
||||
fast_cache 30;
|
||||
mount [vhost]/[app]/[stream].mp3;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue