1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-11-03 04:17:18 -05:00

Add STDIN streaming configuration example

This commit is contained in:
Moritz Grimm 2017-03-30 14:44:09 +02:00
parent 8e9533c5e3
commit 8e0d5d6678
3 changed files with 29 additions and 0 deletions

View File

@ -5,6 +5,7 @@ dist_examples_DATA = \
ezstream-file_template.xml \
ezstream-full.xml \
ezstream-minimal.xml \
ezstream-stdin.xml \
ezstream-video.xml \
metadata.txt \
artist.txt \

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
EXAMPLE: A valid configuration that streams Vorbis input from STDIN as-is
This configuration streams Ogg Vorbis from standard input as-is.
-->
<ezstream>
<server>
<hostname>127.0.0.1</hostname>
<password>hackme</password>
</server>
<stream>
<mountpoint>/stream.ogg</mountpoint>
<format>Vorbis</format>
</stream>
<media>
<type>stdin</type>
</media>
</ezstream>

View File

@ -18,6 +18,9 @@ START_TEST(test_reload)
ck_assert_int_eq(cfg_set_program_config_file(EXAMPLESDIR "/ezstream-minimal.xml",
NULL), 0);
ck_assert_int_eq(cfg_file_reload(), 0);
ck_assert_int_eq(cfg_set_program_config_file(EXAMPLESDIR "/ezstream-stdin.xml",
NULL), 0);
ck_assert_int_eq(cfg_file_reload(), 0);
ck_assert_int_eq(cfg_set_program_config_file(EXAMPLESDIR "/ezstream-video.xml",
NULL), 0);
ck_assert_int_eq(cfg_file_reload(), 0);