Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
408c43e8
Commit
408c43e8
authored
Dec 20, 2013
by
Felix Paul Kühne
Browse files
local network: require iOS 7 for SAP discovery (closes #10081)
parent
1ae0159b
Changes
2
Hide whitespace changes
Inline
Side-by-side
NEWS
View file @
408c43e8
...
...
@@ -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
...
...
Sources/VLCLocalServerListViewController.m
View file @
408c43e8
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment