|
|
|
@ -379,26 +379,27 @@ vhost http.static.srs.com {
|
|
|
|
|
|
|
|
|
|
# vhost for http flv/aac/mp3 live stream for each vhost.
|
|
|
|
|
vhost http.remux.srs.com {
|
|
|
|
|
# http flv/mp3/aac stream vhost specified config
|
|
|
|
|
# http flv/mp3/aac/ts stream vhost specified config
|
|
|
|
|
http_remux {
|
|
|
|
|
# whether enable the http flv live streaming service for vhost.
|
|
|
|
|
# whether enable the http 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
|
|
|
|
|
# @remark the flv/ts stream ignore it
|
|
|
|
|
# @remark 0 to disable fast cache for http audio stream.
|
|
|
|
|
# default: 0
|
|
|
|
|
fast_cache 30;
|
|
|
|
|
# the stream mout for rtmp to remux to flv live streaming.
|
|
|
|
|
# the stream mout for rtmp to remux to live streaming.
|
|
|
|
|
# typical mount to [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.
|
|
|
|
|
# [vhost] current vhost for http live stream.
|
|
|
|
|
# [app] current app for http live stream.
|
|
|
|
|
# [stream] current stream for http live stream.
|
|
|
|
|
# @remark the [vhost] is optional, used to mount at specified vhost.
|
|
|
|
|
# the extension:
|
|
|
|
|
# .flv mount http live flv stream, use default gop cache.
|
|
|
|
|
# .ts mount http live ts 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.
|
|
|
|
|
# for example:
|
|
|
|
@ -411,6 +412,8 @@ vhost http.remux.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
|
|
|
|
|
# mount to [vhost]/[app]/[stream].ts
|
|
|
|
|
# access by http://ossrs.net:8080/live/livestream.ts
|
|
|
|
|
# @remark the port of http is specified by http_server section.
|
|
|
|
|
# default: [vhost]/[app]/[stream].flv
|
|
|
|
|
mount [vhost]/[app]/[stream].flv;
|
|
|
|
|