From 0a49638f5447dba6838999da952a90af5619afb0 Mon Sep 17 00:00:00 2001 From: winlin Date: Sat, 24 Dec 2022 15:45:42 +0800 Subject: [PATCH] MP3: Add config examples for MP3. #296 --- trunk/conf/mp3.conf | 19 +++++++++++++++++++ trunk/conf/mp3.http.conf | 15 +++++++++++++++ trunk/conf/mp3.ts.conf | 15 +++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 trunk/conf/mp3.conf create mode 100644 trunk/conf/mp3.http.conf create mode 100644 trunk/conf/mp3.ts.conf diff --git a/trunk/conf/mp3.conf b/trunk/conf/mp3.conf new file mode 100644 index 000000000..d3e0f01ad --- /dev/null +++ b/trunk/conf/mp3.conf @@ -0,0 +1,19 @@ +listen 1935; +max_connections 1000; +daemon off; +srs_log_tank console; +http_server { + enabled on; + listen 8080; + dir ./objs/nginx/html; +} +vhost __defaultVhost__ { + http_remux { + enabled on; + mount [vhost]/[app]/[stream].flv; + } + hls { + enabled on; + hls_acodec mp3; + } +} diff --git a/trunk/conf/mp3.http.conf b/trunk/conf/mp3.http.conf new file mode 100644 index 000000000..7b198230f --- /dev/null +++ b/trunk/conf/mp3.http.conf @@ -0,0 +1,15 @@ +listen 1935; +max_connections 1000; +daemon off; +srs_log_tank console; +http_server { + enabled on; + listen 8080; + dir ./objs/nginx/html; +} +vhost __defaultVhost__ { + http_remux { + enabled on; + mount [vhost]/[app]/[stream].mp3; + } +} diff --git a/trunk/conf/mp3.ts.conf b/trunk/conf/mp3.ts.conf new file mode 100644 index 000000000..c7b7ddd40 --- /dev/null +++ b/trunk/conf/mp3.ts.conf @@ -0,0 +1,15 @@ +listen 1935; +max_connections 1000; +daemon off; +srs_log_tank console; +http_server { + enabled on; + listen 8080; + dir ./objs/nginx/html; +} +vhost __defaultVhost__ { + http_remux { + enabled on; + mount [vhost]/[app]/[stream].ts; + } +}