Commit 408c43e8 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

local network: require iOS 7 for SAP discovery (closes #10081)

parent 1ae0159b
......@@ -33,7 +33,7 @@ Local network:
* Added cover-art and duration to UPnP server item lists
* UPnP stability improvements
* Added support for media broadcasted with the Session Announcement Protocol
(SAP) information on the local network (#9429)
(SAP) information on the local network. Requires iOS 7 or later. (#9429)
* Fix incorrect displayed size for files stored on UPnP multimedia servers
larger than 2147.48 MB (#9641)
* Improved WiFi Upload reliability, especially when uploading multiple
......
......@@ -71,7 +71,10 @@
{
[super viewDidLoad];
_sectionHeaderTexts = @[@"Universal Plug'n'Play (UPNP)", @"File Transfer Protocol (FTP)", @"Network Streams (SAP)"];
if (SYSTEM_RUNS_IOS7_OR_LATER)
_sectionHeaderTexts = @[@"Universal Plug'n'Play (UPNP)", @"File Transfer Protocol (FTP)", @"Network Streams (SAP)"];
else
_sectionHeaderTexts = @[@"Universal Plug'n'Play (UPNP)", @"File Transfer Protocol (FTP)"];
_backToMenuButton = [UIBarButtonItem themedRevealMenuButtonWithTarget:self andSelector:@selector(goBack:)];
self.navigationItem.leftBarButtonItem = _backToMenuButton;
......@@ -401,12 +404,18 @@
- (void)_startSAPDiscovery
{
if (!SYSTEM_RUNS_IOS7_OR_LATER)
return;
_sapDiscoverer = [[VLCMediaDiscoverer alloc] initWithName:@"sap"];
_sapDiscoverer.discoveredMedia.delegate = self;
}
- (void)_stopSAPDiscovery
{
if (!SYSTEM_RUNS_IOS7_OR_LATER)
return;
_sapDiscoverer = nil;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment