[avahi] Audio-Video Avahi Services on Raspberry Pi

JAYMIN DABHI jaymin.dabhi at avioconnectpro.com.au
Tue Sep 27 10:47:39 UTC 2016


Hi All,

I want to stream music first and then video from my iPad to Raspberry Pi.
For that I have downloaded necessary packages related to Avahi on my board.
For audio and video, there are "raop" and "airplay" services respectively.

so, I have created these services on RPi in the "/etc/avahi/services" 
directory with name "airplay.service".

*_As below:_*

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">

<service-group>
         <name replace-wildcards="yes">service on %h</name>

         <service>
                 <type>_airplay._tcp</type>
                 <port>47000</port>
<txt-record>model=AppleTV3,2,1</txt-record>
<txt-record>deviceid=48:5d:60:7c:ee:22</txt-record>
<txt-record>features=0x100009FF</txt-record>
                 <txt-record>srcvers=160.10</txt-record>
                 <txt-record>rmodel=PC1,1</txt-record>
         </service>

         <service>
                 <type>_raop._tcp</type>
                 <port>5002</port>
                 <txt-record>txtvers=1</txt-record>
                 <txt-record>ch=2</txt-record>
                 <txt-record>cn=0,1,2,3</txt-record>
                 <txt-record>et=0,1</txt-record>
                 <txt-record>sm=false</txt-record>
                 <txt-record>pw=false</txt-record>
                 <txt-record>sv=false</txt-record>
                 <txt-record>sr=44100</txt-record>
                 <txt-record>ss=16</txt-record>
                 <txt-record>tp=UPD</txt-record>
                 <txt-record>vn=3</txt-record>
                 <txt-record>md=0,1,2</txt-record>
                 <txt-record>ek=1</txt-record>
                 <txt-record>am=AppleTV2,1</txt-record>
         </service>
</service-group>

*_The "/etc/default/avahi-daemon" file,_*
AVAHI_DAEMON_DETECT_LOCAL=0

_*and the "/etc/avahi/avahi-daemon.conf" file*_
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

# See avahi-daemon.conf(5) for more information on this configuration
# file!

[server]
#host-name=foo
#domain-name=local
#browse-domains=0pointer.de, zeroconf.org
use-ipv4=yes
use-ipv6=yes
allow-interfaces=eth0,wlan0
#deny-interfaces=eth1
#check-response-ttl=no
#use-iff-running=no
#enable-dbus=yes
disallow-other-stacks=yes
#allow-point-to-point=no
#cache-entries-max=4096
#clients-max=4096
#objects-per-client-max=1024
#entries-per-entry-group-max=32
ratelimit-interval-usec=1000000
ratelimit-burst=1000

[wide-area]
enable-wide-area=yes

[publish]
#disable-publishing=no
#disable-user-service-publishing=no
#add-service-cookie=no
publish-addresses=yes
publish-hinfo=yes
publish-workstation=no
publish-domain=no
#publish-dns-servers=192.168.50.1, 192.168.50.2
#publish-resolv-conf-dns-servers=yes
#publish-aaaa-on-ipv4=yes
#publish-a-on-ipv6=no

[reflector]
#enable-reflector=no
#reflect-ipv=no

[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=768
rlimit-stack=4194304
rlimit-nproc=3


These services can discover by "Avahi Zeroconf Browser" utility on RPi, 
it shows service on raspberrypi.
But, can't discover by iPad.

Are those txt-record parameters correct and in right place?
I tried with different ports e.g. 7000 in '_airplay._tcp' and 5000 in 
'_raop._tcp'.

What should changes have to made to make it discover on iPad?

If anyone has idea about it then please let me know.

Thanks in advance.
Jaymin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/avahi/attachments/20160927/1bd547d3/attachment.html>


More information about the avahi mailing list