From 7b6833065190c7d009e874e26fff1e59ed73d947 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 25 Oct 2020 11:44:02 +0800 Subject: [PATCH] Add hls.realtime.conf for low-latency HLS. 3.0.149 --- README.md | 1 + trunk/conf/hls.realtime.conf | 14 ++++++++++++++ trunk/src/core/srs_core_version3.hpp | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 trunk/conf/hls.realtime.conf diff --git a/README.md b/README.md index e6c4e7d01..1a9475720 100755 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ For previous versions, please read: ## V3 changes +* v3.0, 2020-10-25, Add hls.realtime.conf for low-latency HLS. 3.0.149 * v3.0, 2020-10-24, Refine script and startup logs. 3.0.148 * v3.0, 2020-10-23, Allow FFmpeg if exists at /usr/local/bin/ffmpeg. 3.0.147 * v3.0, 2020-10-23, Refine build script, use libssl in docker. 3.0.146 diff --git a/trunk/conf/hls.realtime.conf b/trunk/conf/hls.realtime.conf new file mode 100644 index 000000000..470d1e85f --- /dev/null +++ b/trunk/conf/hls.realtime.conf @@ -0,0 +1,14 @@ +# the config for srs to delivery realtime RTMP stream +# @see https://github.com/ossrs/srs/wiki/v2_CN_SampleRealtime +# @see full.conf for detail config. + +listen 1935; +max_connections 1000; +vhost __defaultVhost__ { + hls { + enabled on; + hls_fragment 0.2; + hls_window 2; + hls_wait_keyframe off; + } +} diff --git a/trunk/src/core/srs_core_version3.hpp b/trunk/src/core/srs_core_version3.hpp index df800600d..5c15fd973 100644 --- a/trunk/src/core/srs_core_version3.hpp +++ b/trunk/src/core/srs_core_version3.hpp @@ -24,6 +24,6 @@ #ifndef SRS_CORE_VERSION3_HPP #define SRS_CORE_VERSION3_HPP -#define SRS_VERSION3_REVISION 148 +#define SRS_VERSION3_REVISION 149 #endif