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:
parent
8e9533c5e3
commit
8e0d5d6678
@ -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 \
|
||||
|
25
examples/ezstream-stdin.xml
Normal file
25
examples/ezstream-stdin.xml
Normal 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>
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user