From 7efbeca94babcdb428c628511a51610fd8105bb2 Mon Sep 17 00:00:00 2001
From: Mateja <mail@matejamaric.com>
Date: Thu, 1 Oct 2020 12:58:12 +0200
Subject: MPD streaming to phone

---
 .config/mpd/mpd.conf | 28 +++++++++++++++++++---------
 1 file changed, 19 insertions(+), 9 deletions(-)

diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf
index 109b423..67557ce 100644
--- a/.config/mpd/mpd.conf
+++ b/.config/mpd/mpd.conf
@@ -17,7 +17,6 @@ state_file			"~/.local/share/mpd/state"
 # dynamic information attached to songs.
 sticker_file			"~/.local/share/mpd/sticker.sql"
 
-
 # default: run as current user
 #user				"nobody"
 
@@ -56,7 +55,6 @@ auto_update	"yes"
 #zeroconf_enabled		"yes"
 #zeroconf_name			"Music Player @ %h"
 
-
 #password                        "password@read,add,control,admin"
 
 # permissions for non-logged users
@@ -97,13 +95,12 @@ auto_update	"yes"
 ##	mixer_control	"PCM"		# optional
 #}
 
-#audio_output {
-#	type		"pulse"
-#	name		"My Pulse Output"
-##	name		"pulse audio"
-##	server		"remote_server"		# optional
-##	sink		"remote_server_sink"	# optional
-#}
+audio_output {
+	type		"pulse"
+	name		"My Pulse Output"
+#	server		"remote_server"		# optional
+#	sink		"remote_server_sink"	# optional
+}
 
 # An example of an sndio output.
 #
@@ -113,6 +110,19 @@ auto_update	"yes"
 #	mixer_type	"hardware"
 #}
 
+# You can listen to this output on mobile using VLC
+audio_output {
+	type		"httpd"
+	name		"My HTTP Stream"
+	encoder		"vorbis"		# optional, vorbis or lame
+	port		"6680"
+	bind_to_address	"0.0.0.0"		# optional, IPv4 or IPv6
+#	quality		"5.0"			# do not define if bitrate is defined
+	bitrate		"128"			# do not define if quality is defined
+	format		"44100:16:1"
+	max_clients	"0"			# optional 0=no limit
+}
+
 # (ReplayGain) "off", "album", "track","auto" default: off
 #replaygain			"album"
 #replaygain_preamp		"0"
-- 
cgit v1.2.3