Update mpd HTTP stream
This commit is contained in:
parent
c7d3fd8ea6
commit
883cd6c651
1 changed files with 7 additions and 11 deletions
|
|
@ -76,13 +76,6 @@ port "{{ mpd_port }}"
|
||||||
#
|
#
|
||||||
auto_update "yes"
|
auto_update "yes"
|
||||||
|
|
||||||
# Input #######################################################################
|
|
||||||
#
|
|
||||||
|
|
||||||
input {
|
|
||||||
plugin "curl"
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
|
@ -94,17 +87,20 @@ input {
|
||||||
# autodetection for one sound card.
|
# autodetection for one sound card.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Use a fixed format for the HTTP stream because it cannot switch its audio
|
||||||
|
# format on-the-fly when the song changes.
|
||||||
|
# see https://mpd.readthedocs.io/en/latest/plugins.html#httpd
|
||||||
audio_output {
|
audio_output {
|
||||||
type "httpd"
|
type "httpd"
|
||||||
name "HTTP Stream"
|
name "HTTP Stream"
|
||||||
encoder "opus"
|
encoder "opus"
|
||||||
port "{{ mpd_http_stream_port }}"
|
port "{{ mpd_http_stream_port }}"
|
||||||
bind_to_address "{{ vpn_listen_address }}"
|
bind_to_address "{{ vpn_listen_address }}"
|
||||||
bitrate "auto"
|
bitrate "128000"
|
||||||
allowed_formats "96000:24:2 44800:24:2 44800:16:2 44100:16:2"
|
format "48000:16:1"
|
||||||
always_on "yes"
|
always_on "yes"
|
||||||
tags "yes"
|
tags "yes"
|
||||||
max_clients "0" # optional 0=no limit
|
max_clients "0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue