forked from nto/nto.github.com
-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.html
3859 lines (3381 loc) · 116 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<meta http-equiv="Content-language" content="en"/>
<meta name="keywords" content="airplay,airtunes,protocol,specification"/>
<meta name="author" content="Clément Vasseur"/>
<title>Unofficial AirPlay Protocol Specification</title>
<link rel="stylesheet" type="text/css" href="AirPlay.css"/>
</head>
<body>
<div id="content">
<h1 class="title">Unofficial AirPlay Protocol Specification</h1>
<ul class="toc">
<li><a href="#introduction">1. Introduction</a></li>
<li><a href="#servicediscovery">2. Service Discovery</a></li>
<li><ul>
<li><a href="#servicediscovery-airtunesservice">2.1. AirTunes service</a></li>
<li><a href="#servicediscovery-airplayservice">2.2. AirPlay Service</a></li>
</ul></li>
<li><a href="#photos">3. Photos</a></li>
<li><ul>
<li><a href="#photos-httprequests">3.1. HTTP requests</a></li>
<li><a href="#photos-events">3.2. Events</a></li>
<li><a href="#photos-photocaching">3.3. Photo Caching</a></li>
<li><a href="#photos-slideshows">3.4. Slideshows</a></li>
</ul></li>
<li><a href="#video">4. Video</a></li>
<li><ul>
<li><a href="#video-httprequests">4.1. HTTP requests</a></li>
<li><a href="#video-events">4.2. Events</a></li>
</ul></li>
<li><a href="#audio">5. Audio</a></li>
<li><ul>
<li><a href="#audio-rtsprequests">5.1. RTSP requests</a></li>
<li><a href="#audio-rtpstreams">5.2. RTP Streams</a></li>
<li><a href="#audio-volumecontrol">5.3. Volume Control</a></li>
<li><a href="#audio-metadata">5.4. Metadata</a></li>
<li><a href="#audio-airportexpressauthentication">5.5. AirPort Express Authentication</a></li>
<li><a href="#audio-remotecontrol">5.6. Remote Control</a></li>
</ul></li>
<li><a href="#screenmirroring">6. Screen Mirroring</a></li>
<li><ul>
<li><a href="#screenmirroring-httprequests">6.1. HTTP requests</a></li>
<li><a href="#screenmirroring-streampackets">6.2. Stream Packets</a></li>
<li><a href="#screenmirroring-timesynchronization">6.3. Time Synchronization</a></li>
</ul></li>
<li><a href="#passwordprotection">7. Password Protection</a></li>
<li><a href="#contributing">8. Contributing</a></li>
<li><ul>
<li><a href="#contributing-data">8.1. Device Data</a></li>
<li><ul>
<li><a href="#contributing-data-linux">8.1.1. Linux</a></li>
<li><a href="#contributing-data-macos">8.1.2. macOS</a></li>
</ul></li>
</ul></li>
<li><a href="#history">9. History</a></li>
<li><a href="#resources">10. Resources</a></li>
<li><ul>
<li><a href="#resources-ietfrfcs">10.1. IETF RFCs</a></li>
<li><a href="#resources-ietfdrafts">10.2. IETF drafts</a></li>
<li><a href="#resources-appleprotocols">10.3. Apple Protocols</a></li>
</ul></li>
</ul>
<h1 id="introduction">1. Introduction</h1>
<p>AirPlay is a family of protocols implemented by Apple to view various
types of media content on the <em>Apple TV</em> from any iOS device or iTunes.
In this documentation, “<em>iOS device</em>” refers to an iPhone, iPod touch or
iPad. The following scenarios are supported by AirPlay:</p>
<ul>
<li><p>Display photos and slideshows from an iOS device.</p></li>
<li><p>Stream audio from an iOS device or iTunes.</p></li>
<li><p>Display videos from an iOS device or iTunes.</p></li>
<li><p>Show the screen content from an iOS device or OS X Mountain Lion.
This is called <em>AirPlay Mirroring</em>. It requires hardware capable of
encoding live video without taking too much CPU, so it is only
available on iPhone 4S, iPad 2, the new iPad, and Macs with Sandy
Bridge CPUs.</p></li>
</ul>
<p>Audio streaming is also supported from an iOS device or iTunes to an
AirPort Express base station or a 3<sup>rd</sup> party AirPlay-enabled audio
device. Initially this was called <em>AirTunes</em>, but it was later renamed
to AirPlay when Apple added video support for the Apple TV.</p>
<p>This document describes these protocols, as implemented in Apple TV
software version 5.0, iOS 5.1 and iTunes 10.6. They are based on
well-known standard networking protocols such as <em>Multicast DNS</em>,
<em>HTTP</em>, <em>RTSP</em>, <em>RTP</em> or <em>NTP</em>, with custom extensions.</p>
<p>All these information have been gathered by using various techniques of
reverse engineering, so they might be somewhat inaccurate and
incomplete. Moreover, this document does not explain how to circumvent
any kind of security implemented by Apple:</p>
<ul>
<li><p>It does not give any RSA keys.</p></li>
<li><p>It does not explain how to decode iTunes videos protected with the
<em>FairPlay</em> DRM.</p></li>
<li><p>It does not explain the FairPlay authentication (SAPv2.5) used by iOS
devices and OS X Mountain Lion to protect audio and screen content.</p></li>
</ul>
<p>Please don’t e-mail me about this, I won’t reply. In fact, none of this
is actually required to be able to view media content on Apple TV.</p>
<h1 id="servicediscovery">2. Service Discovery</h1>
<p>AirPlay does not require any configuration to be able to find compatible
devices on the network, thanks to <a href="http://www.ietf.org/id/draft-cheshire-dnsext-dns-sd-11.txt">DNS-based service discovery</a>, based
on <a href="http://www.ietf.org/id/draft-cheshire-dnsext-multicastdns-15.txt">multicast DNS</a>, aka <em>Bonjour</em>.</p>
<p>An AirPlay device such as the Apple TV publishes two services. The first
one is <em>RAOP</em> (<a href="http://en.wikipedia.org/wiki/Remote_Audio_Output_Protocol">Remote Audio Output Protocol</a>), used for audio
streaming, and the other one is the AirPlay service, for photo and video
and in later versions also audio content.</p>
<h2 id="servicediscovery-airtunesservice">2.1. AirTunes service</h2>
<p class="caption">RAOP service from Apple TV</p>
<pre><code>name: 5855CA1AE288@Apple TV
type: _raop._tcp
port: 49152
txt:
txtvers=1
ch=2
cn=0,1,2,3
da=true
et=0,3,5
md=0,1,2
pw=false
sv=false
sr=44100
ss=16
tp=UDP
vn=65537
vs=130.14
am=AppleTV2,1
sf=0x4
</code></pre>
<p>The name is formed using the MAC address of the device and the name of
the remote speaker which will be shown by the clients.</p>
<p>The following fields appear in the TXT record:</p>
<table>
<thead>
<tr>
<th>name</th>
<th>value</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>txtvers</code></td>
<td>1</td>
<td>TXT record version 1</td>
</tr>
<tr>
<td><code>ch</code></td>
<td>2</td>
<td>audio channels: stereo</td>
</tr>
<tr>
<td><code>cn</code></td>
<td>0,1,2,3</td>
<td>audio codecs</td>
</tr>
<tr>
<td><code>et</code></td>
<td>0,3,5</td>
<td>supported encryption types</td>
</tr>
<tr>
<td><code>md</code></td>
<td>0,1,2</td>
<td>supported metadata types</td>
</tr>
<tr>
<td><code>pw</code></td>
<td>false</td>
<td>does the speaker require a password?</td>
</tr>
<tr>
<td><code>sr</code></td>
<td>44100</td>
<td>audio sample rate: 44100 Hz</td>
</tr>
<tr>
<td><code>ss</code></td>
<td>16</td>
<td>audio sample size: 16-bit</td>
</tr>
<tr>
<td><code>tp</code></td>
<td>UDP</td>
<td>supported transport: TCP or UDP</td>
</tr>
<tr>
<td><code>vs</code></td>
<td>130.14</td>
<td>server version 130.14</td>
</tr>
<tr>
<td><code>am</code></td>
<td>AppleTV2,1</td>
<td>device model</td>
</tr>
</tbody>
</table>
<h3>Audio codecs</h3>
<table>
<thead>
<tr>
<th>cn</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>PCM</td>
</tr>
<tr>
<td>1</td>
<td>Apple Lossless (ALAC)</td>
</tr>
<tr>
<td>2</td>
<td>AAC</td>
</tr>
<tr>
<td>3</td>
<td>AAC ELD (Enhanced Low Delay)</td>
</tr>
</tbody>
</table>
<h3>Encryption Types</h3>
<table>
<thead>
<tr>
<th>et</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>no encryption</td>
</tr>
<tr>
<td>1</td>
<td>RSA (AirPort Express)</td>
</tr>
<tr>
<td>3</td>
<td>FairPlay</td>
</tr>
<tr>
<td>4</td>
<td>MFiSAP (3rd-party devices)</td>
</tr>
<tr>
<td>5</td>
<td>FairPlay SAPv2.5</td>
</tr>
</tbody>
</table>
<h3>Metadata Types</h3>
<table>
<thead>
<tr>
<th>md</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>text</td>
</tr>
<tr>
<td>1</td>
<td>artwork</td>
</tr>
<tr>
<td>2</td>
<td>progress</td>
</tr>
</tbody>
</table>
<h2 id="servicediscovery-airplayservice">2.2. AirPlay Service</h2>
<p class="caption">AirPlay service</p>
<pre><code>name: Apple TV
type: _airplay._tcp
port: 7000
txt:
deviceid=58:55:CA:1A:E2:88
features=0x39f7
model=AppleTV2,1
srcvers=130.14
</code></pre>
<p>The following fields are available in the TXT record:</p>
<table>
<thead>
<tr>
<th>name</th>
<th>type</th>
<th>value</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>model</code></td>
<td>string</td>
<td>AppleTV2,1</td>
<td>device model</td>
</tr>
<tr>
<td><code>manufacturer</code></td>
<td>string</td>
<td>Sound United</td>
<td>device manufacturer</td>
</tr>
<tr>
<td><code>serialNumber</code></td>
<td>string</td>
<td>LFKSDKERWER</td>
<td>device serial number</td>
</tr>
<tr>
<td><code>fv</code></td>
<td>string</td>
<td>p20.1.505.140</td>
<td>device firmware version</td>
</tr>
<tr>
<td><code>osvers</code></td>
<td>string</td>
<td>12.2.1</td>
<td>device OS version</td>
</tr>
<tr>
<td><code>deviceid</code></td>
<td>string</td>
<td>58:55:CA:1A:E2:88</td>
<td>Device ID. Usually MAC address of the device</td>
</tr>
<tr>
<td><code>features</code></td>
<td>32 bit hex number,optional high order 32 bit hex number</td>
<td>0x39f7,0xE</td>
<td>
bitfield of supported features. This was originally a 32 bit value but
it has since been expanded to a 64 bit value. To support both these
types the mDNS value is encoded as two 32 bit values separated by comma
with the comma and second 32 bit value being optional.
</td>
</tr>
<tr>
<td><code>pw</code></td>
<td>boolean</td>
<td>1</td>
<td>server is password protected</td>
</tr>
<tr>
<td><code>acl</code></td>
<td>int64</td>
<td>0</td>
<td>Access control level</td>
</tr>
<tr>
<td><code>srcvers</code></td>
<td>string</td>
<td>380.10.1</td>
<td>airplay version</td>
</tr>
<tr>
<td><code>flags</code></td>
<td>20 bit hex number</td>
<td>0x804</td>
<td>bitfield of system flags</td>
</tr>
<tr>
<td><code>pk</code></td>
<td>hex string</td>
<td>b4bf1e47e6aac0b5bb7cf9e2cd0fe5994d4d2f508a5bc6d518856c8842f69c0a</td>
<td>public key</td>
</tr>
<tr>
<td><code>pi</code></td>
<td>UUID string</td>
<td>f27fd22b-2569-4f65-aa03-1c13dabf49b3</td>
<td>group_id / PublicCUAirPlayPairingIdentifier</td>
</tr>
<tr>
<td><code>psi</code></td>
<td>UUID string</td>
<td>67AE9DB4-6C03-4FF2-9D22-3E7C7DE94DBA</td>
<td>PublicCUSystemPairingIdentifier</td>
</tr>
<tr>
<td><code>gid</code></td>
<td>UUID string</td>
<td>3008B5C8-9BD3-4479-A564-90BFB3D780C0</td>
<td>group UUID</td>
</tr>
<tr>
<td><code>gcgl</code></td>
<td>boolean</td>
<td>1</td>
<td>group contains group leader / Group contains discoverable leader</td>
</tr>
<tr>
<td><code>igl</code></td>
<td>boolean</td>
<td>1</td>
<td>is group leader</td>
</tr>
<tr>
<td><code>gpn</code></td>
<td>string</td>
<td>1</td>
<td>group public name</td>
</tr>
<tr>
<td><code>hgid</code></td>
<td>UUID string</td>
<td>CBCCCC31-29E6-4CBE-84ED-501F555172C9</td>
<td>home group UUID</td>
</tr>
<tr>
<td><code>hmid</code></td>
<td>string</td>
<td></td>
<td>household ID</td>
</tr>
<tr>
<td><code>pgcgl</code></td>
<td>boolean</td>
<td>1</td>
<td>parent group contains discoverable leader</td>
</tr>
<tr>
<td><code>pgid</code></td>
<td>UUID string</td>
<td>3008B5C8-9BD3-4479-A564-90BFB3D780C0</td>
<td>parent group UUID</td>
</tr>
<tr>
<td><code>tsid</code></td>
<td>UUID string</td>
<td>3008B5C8-9BD3-4479-A564-90BFB3D780C0</td>
<td>tight sync UUID</td>
</tr>
<tr>
<td><code>rsf</code></td>
<td>64 bit hex number</td>
<td>0x0</td>
<td>required sender features</td>
</tr>
<tr>
<td><code>protovers</code></td>
<td>string</td>
<td>1.1</td>
<td>protocol version</td>
</tr>
<tr>
<td><code>vv</code></td>
<td>?</td>
<td>2</td>
<td>vodka version</td>
</tr>
</tbody>
</table>
<p>The <code>pw</code> field appears only if the AirPlay server is password protected.
Otherwise it is not included in the TXT record.</p>
<h3 id="servicediscovery-airplayservice-Features">2.2.1. Features</h3>
<p>The <code>features</code> bitfield allows the following features to be defined:</p>
<table id="airplay-features">
<tbody id="airplay-features-interactive" class="noscript">
<tr>
<th colspan="3">
Examples:
<select id="airplay-features-examples">
<option value="">Custom</option>
<option value="0x4A7FFFF7,0x4155FDE">4K Apple TV</option>
<option value="0x4A7FCA00,0x4156BD0">HomePod</option>
<option value="0x445D0A00, 0x1C340">Airport Express</option>
<option value="0x445F8A00, 0x1C340">Denon AVR-X3500H</option>
<option value="0x445F8A00, 0x1C340">Denon AVR-X1400H</option>
<option value="0x445F8A00, 0x1C340">Denon AVR-X4400H</option>
<option value="0x445C0A00, 0x1C340">Libretone LTH200</option>
<option value="0x445C0A00, 0x1C340">Libretone LTH200</option>
<option value="0x445F8A00, 0x1C340">Sonos Beam</option>
<option value="0x445F8A00, 0x1C340">Sonos One</option>
<option value="0x4A7FFFF7, 0xE">AirServer</option>
<option value="0x5A7FFFF7, 0x1E">Airplay</option>
<option value="0x40180200, 0x300">Required for multi-room audio</option>
</select>
<input type="text" id="airplay-features-input">
</th>
<tr>
</tbody>
<tbody id="airplay-features-output" class="noscript">
<tr>
<td colspan="3">
Decimal:
<span id="airplay-features-dec"></span>
</td>
</tr>
<tr>
<td colspan="3">
Hex:
<span id="airplay-features-hex"></span>
</td>
</tr>
<tr>
<td colspan="3">
mDNS: <span id="airplay-features-txt"></span>
</td>
</tr>
</tbody>
<tbody>
<tr>
<th>bit</th>
<th>name</th>
<th>description</th>
</tr>
</tbody>
<tbody>
<tr id="airplay-features-bit0">
<td>0</td>
<td><code>Video</code></td>
<td>video supported</td>
</tr>
<tr id="airplay-features-bit1">
<td>1</td>
<td><code>Photo</code></td>
<td>photo supported</td>
</tr>
<tr id="airplay-features-bit2">
<td>2</td>
<td><code>VideoFairPlay</code></td>
<td>video protected with FairPlay DRM</td>
</tr>
<tr id="airplay-features-bit3">
<td>3</td>
<td><code>VideoVolumeControl</code></td>
<td>volume control supported for videos</td>
</tr>
<tr id="airplay-features-bit4">
<td>4</td>
<td><code>VideoHTTPLiveStreams</code></td>
<td>http live streaming supported</td>
</tr>
<tr id="airplay-features-bit5">
<td>5</td>
<td><code>Slideshow</code></td>
<td>slideshow supported</td>
</tr>
<tr id="airplay-features-bit6">
<td>6</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit7">
<td>7</td>
<td><code>Screen</code></td>
<td>mirroring supported</td>
</tr>
<tr id="airplay-features-bit8">
<td>8</td>
<td><code>ScreenRotate</code></td>
<td>screen rotation supported</td>
</tr>
<tr id="airplay-features-bit9">
<td>9</td>
<td><code>Audio</code></td>
<td>audio supported</td>
</tr>
<tr id="airplay-features-bit10">
<td>10</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit11">
<td>11</td>
<td><code>AudioRedundant</code></td>
<td>audio packet redundancy supported</td>
</tr>
<tr id="airplay-features-bit12">
<td>12</td>
<td><code>FPSAPv2pt5_AES_GCM</code></td>
<td>FairPlay secure auth supported</td>
</tr>
<tr id="airplay-features-bit13">
<td>13</td>
<td><code>PhotoCaching</code></td>
<td>photo preloading supported</td>
</tr>
<tr id="airplay-features-bit14">
<td>14</td>
<td><code>Authentication4</code></td>
<td>Authentication type 4</td>
</tr>
<tr id="airplay-features-bit15">
<td>15</td>
<td><code>MetadataFeature1</code></td>
<td>bit 1 of MetadataFeatures</td>
</tr>
<tr id="airplay-features-bit16">
<td>16</td>
<td><code>MetadataFeature2</code></td>
<td>bit 2 of MetadataFeatures</td>
</tr>
<tr id="airplay-features-bit17">
<td>17</td>
<td><code>MetadataFeature0</code></td>
<td>bit 0 of MetadataFeatures</td>
</tr>
<tr id="airplay-features-bit18">
<td>18</td>
<td><code>AudioFormat1</code></td>
<td>support for audio format 1</td>
</tr>
<tr id="airplay-features-bit19">
<td>19</td>
<td><code>AudioFormat2</code></td>
<td>support for audio format 2. This bit must be set for AirPlay 2 connection to work</td>
</tr>
<tr id="airplay-features-bit20">
<td>20</td>
<td><code>AudioFormat3</code></td>
<td>support for audio format 3. This bit must be set for AirPlay 2 connection to work</td>
</tr>
<tr id="airplay-features-bit21">
<td>21</td>
<td><code>AudioFormat4</code></td>
<td>support for audio format 4</td>
</tr>
<tr id="airplay-features-bit22">
<td>22</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit23">
<td>23</td>
<td><code>Authentication1</code></td>
<td>Authentication type 1</td>
</tr>
<tr id="airplay-features-bit24">
<td>24</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit25">
<td>25</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit26">
<td>26</td>
<td><code>HasUnifiedAdvertiserInfo</code></td>
<td></td>
</tr>
<tr id="airplay-features-bit27">
<td>27</td>
<td><code>SupportsLegacyPairing</code></td>
<td></td>
</tr>
<tr id="airplay-features-bit28">
<td>28</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit29">
<td>29</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit30">
<td>30</td>
<td><code>RAOP</code></td>
<td>RAOP is supported on this port. With this bit set your don't need the AirTunes service</td>
</tr>
<tr id="airplay-features-bit31">
<td>31</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit32">
<td>32</td>
<td><code>IsCarPlay</code> / <code>SupportsVolume</code></td>
<td>Don’t read key from <code>pk</code> record it is known</td>
</tr>
<tr id="airplay-features-bit33">
<td>33</td>
<td><code>SupportsAirPlayVideoPlayQueue</code></td>
<td></td>
</tr>
<tr id="airplay-features-bit34">
<td>34</td>
<td><code>SupportsAirPlayFromCloud</code></td>
<td></td>
</tr>
<tr id="airplay-features-bit35">
<td>35</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit36">
<td>36</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit37">
<td>37</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit38">
<td>38</td>
<td><code>SupportsCoreUtilsPairingAndEncryption</code></td>
<td>
<code>SupportsHKPairingAndAccessControl</code>,
<code>SupportsSystemPairing</code> and
<code>SupportsTransientPairing</code> implies
<code>SupportsCoreUtilsPairingAndEncryption</code></td>
</tr>
<tr id="airplay-features-bit39">
<td>39</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit40">
<td>40</td>
<td><code>SupportsBufferedAudio</code></td>
<td>Bit needed for device to show as supporting multi-room audio</td>
</tr>
<tr id="airplay-features-bit41">
<td>41</td>
<td><code>SupportsPTP</code></td>
<td>Bit needed for device to show as supporting multi-room audio</td>
</tr>
<tr id="airplay-features-bit42">
<td>42</td>
<td><code>SupportsScreenMultiCodec</code></td>
<td></td>
</tr>
<tr id="airplay-features-bit43">
<td>43</td>
<td><code>SupportsSystemPairing</code></td>
<td></td>
</tr>
<tr id="airplay-features-bit44">
<td>44</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit45">
<td>45</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit46">
<td>46</td>
<td><code>SupportsHKPairingAndAccessControl</code></td>
<td></td>
</tr>
<tr id="airplay-features-bit47">
<td>47</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit48">
<td>48</td>
<td><code>SupportsTransientPairing</code></td>
<td><code>SupportsSystemPairing</code> implies <code>SupportsTransientPairing</code></td>
</tr>
<tr id="airplay-features-bit49">
<td>49</td>
<td></td>
<td></td>
</tr>
<tr id="airplay-features-bit50">
<td>50</td>
<td><code>MetadataFeature4</code></td>
<td>bit 4 of MetadataFeatures</td>
</tr>
<tr id="airplay-features-bit51">
<td>51</td>
<td><code>SupportsUnifiedPairSetupAndMFi</code></td>
<td>Authentication type 8</td>
</tr>
<tr id="airplay-features-bit52">
<td>52</td>
<td><code>SupportsSetPeersExtendedMessage</code></td>
<td></td>
</tr>
</tbody>
</table>
<p>Note that the Apple TV does not support <code>VideoVolumeControl</code>. It has
probably been introduced for the upcoming Apple television.</p>
<h3 id="servicediscovery-airplayservice-MetadataFeatures">2.2.2. MetadataFeatures</h3>
<p class="caption">MetadataFeatures</p>
<pre><code>
bit 17 = bit 0
bit 15 = bit 1
bit 16 = bit 2
is apple tv = bit 3
bit 50 = bit 4
is apple tv or home pod of certain version = bit 5
is apple tv or home pod of certain version = bit 6
</code></pre>
<h3 id="servicediscovery-airplayservice-SupportedAudioFormats">2.2.3. SupportedAudioFormats</h3>
<p class="caption">SupportedAudioFormats</p>
<pre><code>
24 20 16 12 8 4 0
bit 18 = 0x800 = 1000 0000 0000
bit 19 = 0x40000 = 0100 0000 0000 0000 0000
bit 20 = 0x400000 = 0100 0000 0000 0000 0000 0000
bit 21 = 0x1000000 = 0001 0000 0000 0000 0000 0000 0000
</code></pre>
<h3 id="servicediscovery-airplayservice-Subtype">2.2.4. Subtype</h3>
<p class="caption">Subtype</p>
<pre><code>
AppleTV = deviceModel has prefix “AppleTV”
HomePod = deviceModel has prefix “AudioAccessory”
ThirdPartySpeaker = HasUnifiedAdvertiserInfo or SupportsUnifiedPairSetupAndMFi feature is set
Unknown = otherwise
</code></pre>
<h3 id="servicediscovery-airplayservice-Subtype">2.2.5. System Flags</h3>
<p>The <code>flags</code> bitfield allows the following flags to be defined:</p>
<table id="airplay-system-flags">
<tbody id="airplay-system-flags-interactive" class="noscript">
<tr>
<th colspan="3">
Examples:
<select id="airplay-system-flags-examples">
<option value="">Custom</option>
<option value="0x10644">4K Apple TV Not playing</option>
<option value="0x30e44">4K Apple TV receiving AirPlay audio</option>
<option value="0x30e44">4K Apple TV receiving AirPlay video</option>
<option value="0x30644">4K Apple TV receiving AirPlay screen</option>
<option value="0x10644">4K Apple TV playing local media</option>
<option value="0x3ac04">HomePod Slave</option>
<option value="0x18404">HomePod Group Leader</option>
<option value="0x4">Airport Express</option>
<option value="0x4">Denon AVR-X3500H</option>
<option value="0x804">Denon AVR-X3500H Playing Audio</option>
<option value="0x4">Denon AVR-X1400H</option>
<option value="0x4">Denon AVR-X4400H</option>
<option value="0x484">Libretone LTH200</option>
<option value="0x404">Sonos Beam</option>
<option value="0x404">Sonos One</option>
<option value="0x4">AirServer</option>
<option value="0x4">Airplay</option>
</select>
<input type="text" id="airplay-system-flags-input">
</th>
<tr>
</tbody>
<tbody id="airplay-system-flags-output" class="noscript">
<tr>
<td colspan="3">
Decimal:
<span id="airplay-system-flags-dec"></span>
</td>
</tr>
<tr>
<td colspan="3">
Hex:
<span id="airplay-system-flags-hex"></span>
</td>
</tr>
</tbody>
<tbody>
<tr>
<th>bit</th>
<th>name</th>
<th>description</th>
</tr>
</tbody>
<tbody>
<tr id="airplay-system-flags-bit0">
<td>0</td>
<td>Problem has been detected</td>
<td>Defined in CarPlay section of MFi spec. Not seen set anywhere</td>
</tr>
<tr id="airplay-system-flags-bit1">
<td>1</td>
<td>Device is not configured</td>
<td>Defined in CarPlay section of MFi spec. Not seen set anywhere</td>
</tr>
<tr id="airplay-system-flags-bit2">
<td>2</td>
<td>Audio cable is attached</td>
<td>Defined in CarPlay section of MFi spec. Seen on AppleTV, Denon AVR, HomePod, Airport Express</td>
</tr>
<tr id="airplay-system-flags-bit3">
<td>3</td>
<td><code>PINRequired</code></td>
<td></td>
</tr>
<tr id="airplay-system-flags-bit4">
<td>4</td>
<td>???</td>
<td>Not seen set anywhere</td>
</tr>
<tr id="airplay-system-flags-bit5">
<td>5</td>
<td>???</td>
<td>Not seen set anywhere</td>
</tr>
<tr id="airplay-system-flags-bit6">
<td>6</td>
<td><code>SupportsAirPlayFromCloud</code></td>
<td></td>
</tr>
<tr id="airplay-system-flags-bit7">
<td>7</td>
<td><code>PasswordRequired</code></td>
<td></td>
</tr>
<tr id="airplay-system-flags-bit8">
<td>8</td>
<td>???</td>
<td>Not seen set anywhere</td>
</tr>
<tr id="airplay-system-flags-bit9">
<td>9</td>
<td><code>OneTimePairingRequired</code></td>
<td></td>
</tr>
<tr id="airplay-system-flags-bit10">
<td>10</td>
<td><code>DeviceWasSetupForHKAccessControl</code></td>
<td></td>
</tr>
<tr id="airplay-system-flags-bit11">
<td>11</td>
<td><code>DeviceSupportsRelay</code></td>
<td>Shows in logs as relayable. When set iOS will connect to the device to get currently playing track.</td>
</tr>
<tr id="airplay-system-flags-bit12">
<td>12</td>
<td><code>SilentPrimary</code></td>
<td></td>
</tr>
<tr id="airplay-system-flags-bit13">
<td>13</td>
<td><code>TightSyncIsGroupLeader</code></td>
<td></td>
</tr>
<tr id="airplay-system-flags-bit14">
<td>14</td>
<td><code>TightSyncBuddyNotReachable</code></td>
<td></td>
</tr>
<tr id="airplay-system-flags-bit15">
<td>15</td>
<td><code>IsAppleMusicSubscriber</code></td>
<td>Shows in logs as music</td>
</tr>
<tr id="airplay-system-flags-bit16">
<td>16</td>
<td><code>CloudLibraryIsOn</code></td>
<td>Shows in logs as iCML</td>
</tr>
<tr id="airplay-system-flags-bit17">