[PATCH 3/4] bonjour: add airplay to list of protocols

Alexander Lyon arlyon at me.com
Tue Oct 9 00:47:51 CEST 2018


---
 modules/services_discovery/bonjour.m | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/modules/services_discovery/bonjour.m b/modules/services_discovery/bonjour.m
index 9957188ab8..27d2bb6ca6 100644
--- a/modules/services_discovery/bonjour.m
+++ b/modules/services_discovery/bonjour.m
@@ -169,12 +169,18 @@ NSString *const VLCBonjourRendererDemux         = @"VLCBonjourRendererDemux";
                                        VLCBonjourRendererFlags      : @(VLC_RENDERER_CAN_AUDIO),
                                        VLCBonjourRendererDemux      : @"cc_demux"
                                        };
+    NSDictionary *VLCAirPlayProtocol = @{ VLCBonjourProtocolName       : @"airplay",
+                                          VLCBonjourProtocolServiceName: @"_airplay._tcp.",
+                                          VLCBonjourIsRenderer         : @(YES),
+                                          VLCBonjourRendererFlags      : @(VLC_RENDERER_CAN_AUDIO | VLC_RENDERER_CAN_VIDEO)
+    };
 
     NSArray *VLCSupportedProtocols = @[VLCFtpProtocol,
                                       VLCSmbProtocol,
                                       VLCNfsProtocol,
                                       VLCSftpProtocol,
-                                      VLCCastProtocol];
+                                      VLCCastProtocol,
+                                      VLCAirPlayProtocol];
 
     _rawNetServices = [[NSMutableArray alloc] init];
     _resolvedNetServices = [[NSMutableArray alloc] init];
-- 
2.19.0



More information about the vlc-devel mailing list