<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi All,<br>
    <br>
    I want to stream music first and then video from my iPad to
    Raspberry Pi.<br>
    For that I have downloaded necessary packages related to Avahi on my
    board.<br>
    For audio and video, there are "raop" and "airplay" services
    respectively.<br>
    <br>
    so, I have created these services on RPi in the
    "/etc/avahi/services" directory with name "airplay.service".<br>
    <br>
    <b><u>As below:</u></b><br>
    <br>
    <?xml version="1.0" standalone='no'?><!--*-nxml-*--><br>
    <!DOCTYPE service-group SYSTEM "avahi-service.dtd"><br>
    <br>
    <service-group><br>
            <name replace-wildcards="yes">service on
    %h</name><br>
    <br>
            <service><br>
                    <type>_airplay._tcp</type><br>
                    <port>47000</port><br>
                   
    <txt-record>model=AppleTV3,2,1</txt-record><br>
                   
    <txt-record>deviceid=48:5d:60:7c:ee:22</txt-record><br>
                   
    <txt-record>features=0x100009FF</txt-record><br>
                    <txt-record>srcvers=160.10</txt-record><br>
                    <txt-record>rmodel=PC1,1</txt-record><br>
            </service><br>
    <br>
            <service><br>
                    <type>_raop._tcp</type><br>
                    <port>5002</port><br>
                    <txt-record>txtvers=1</txt-record><br>
                    <txt-record>ch=2</txt-record><br>
                    <txt-record>cn=0,1,2,3</txt-record><br>
                    <txt-record>et=0,1</txt-record><br>
                    <txt-record>sm=false</txt-record><br>
                    <txt-record>pw=false</txt-record><br>
                    <txt-record>sv=false</txt-record><br>
                    <txt-record>sr=44100</txt-record><br>
                    <txt-record>ss=16</txt-record><br>
                    <txt-record>tp=UPD</txt-record><br>
                    <txt-record>vn=3</txt-record><br>
                    <txt-record>md=0,1,2</txt-record><br>
                    <txt-record>ek=1</txt-record><br>
                    <txt-record>am=AppleTV2,1</txt-record><br>
            </service><br>
    </service-group><br>
    <br>
    <b><u>The "/etc/default/avahi-daemon" file,</u></b><br>
    AVAHI_DAEMON_DETECT_LOCAL=0<br>
    <br>
    <u><b>and the "/etc/avahi/avahi-daemon.conf" file</b></u><br>
    # This file is part of avahi.<br>
    #<br>
    # avahi is free software; you can redistribute it and/or modify it<br>
    # under the terms of the GNU Lesser General Public License as<br>
    # published by the Free Software Foundation; either version 2 of the<br>
    # License, or (at your option) any later version.<br>
    #<br>
    # avahi is distributed in the hope that it will be useful, but
    WITHOUT<br>
    # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY<br>
    # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public<br>
    # License for more details.<br>
    #<br>
    # You should have received a copy of the GNU Lesser General Public<br>
    # License along with avahi; if not, write to the Free Software<br>
    # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307<br>
    # USA.<br>
    <br>
    # See avahi-daemon.conf(5) for more information on this
    configuration<br>
    # file!<br>
    <br>
    [server]<br>
    #host-name=foo<br>
    #domain-name=local<br>
    #browse-domains=0pointer.de, zeroconf.org<br>
    use-ipv4=yes<br>
    use-ipv6=yes<br>
    allow-interfaces=eth0,wlan0<br>
    #deny-interfaces=eth1<br>
    #check-response-ttl=no<br>
    #use-iff-running=no<br>
    #enable-dbus=yes<br>
    disallow-other-stacks=yes<br>
    #allow-point-to-point=no<br>
    #cache-entries-max=4096<br>
    #clients-max=4096<br>
    #objects-per-client-max=1024<br>
    #entries-per-entry-group-max=32<br>
    ratelimit-interval-usec=1000000<br>
    ratelimit-burst=1000<br>
    <br>
    [wide-area]<br>
    enable-wide-area=yes<br>
    <br>
    [publish]<br>
    #disable-publishing=no<br>
    #disable-user-service-publishing=no<br>
    #add-service-cookie=no<br>
    publish-addresses=yes<br>
    publish-hinfo=yes<br>
    publish-workstation=no<br>
    publish-domain=no<br>
    #publish-dns-servers=192.168.50.1, 192.168.50.2<br>
    #publish-resolv-conf-dns-servers=yes<br>
    #publish-aaaa-on-ipv4=yes<br>
    #publish-a-on-ipv6=no<br>
    <br>
    [reflector]<br>
    #enable-reflector=no<br>
    #reflect-ipv=no<br>
    <br>
    [rlimits]<br>
    #rlimit-as=<br>
    rlimit-core=0<br>
    rlimit-data=4194304<br>
    rlimit-fsize=0<br>
    rlimit-nofile=768<br>
    rlimit-stack=4194304<br>
    rlimit-nproc=3<br>
    <br>
    <br>
    These services can discover by "Avahi Zeroconf Browser" utility on
    RPi, it shows service on raspberrypi.<br>
    But, can't discover by iPad.<br>
    <br>
    Are those txt-record parameters correct and in right place?<br>
    I tried with different ports e.g. 7000 in '_airplay._tcp' and 5000
    in '_raop._tcp'.<br>
    <br>
    What should changes have to made to make it discover on iPad?<br>
    <br>
    If anyone has idea about it then please let me know.<br>
    <br>
    Thanks in advance.<br>
    Jaymin
  </body>
</html>