1
0
Fork 0
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:
winlin 2015-01-19 13:17:46 +08:00
parent 29a8932b49
commit b7b268dfbf
9 changed files with 87 additions and 8 deletions

View file

@ -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;
}

View 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;
}
}

View 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;
}
}