Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
2e21be01
Commit
2e21be01
authored
Aug 11, 2013
by
Felix Paul Kühne
Browse files
UPNP File List: implement basic streaming via http, rtsp, rtp, mmsh, mms
next-up: http downloading
parent
0943c501
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCLocalServerFolderListViewController.m
View file @
2e21be01
...
...
@@ -14,6 +14,9 @@
#import "MediaServer1ContainerObject.h"
#import "MediaServer1Device.h"
#import "VLCLocalNetworkListCell.h"
#import "VLCAppDelegate.h"
#import "VLCPlaylistViewController.h"
#import "UINavigationController+Theme.h"
@interface
VLCLocalServerFolderListViewController
()
<
UITableViewDataSource
,
UITableViewDelegate
>
{
...
...
@@ -139,12 +142,23 @@
MediaServer1ItemRes
*
resource
=
nil
;
NSEnumerator
*
e
=
[[
item
resources
]
objectEnumerator
];
NSURL
*
itemURL
;
while
((
resource
=
(
MediaServer1ItemRes
*
)[
e
nextObject
])){
NS
Log
(
@"%@ - %d, %@, %d, %d, %d, %@"
,
[
item
title
],
[
resource
bitrate
],
[
resource
duration
],
[
resource
nrAudioChannels
],
[
resource
size
],
[
resource
durationInSeconds
],
[
resource
protocolInfo
]
);
NSLog
(
@"URI is %@"
,
[
item
uri
]
)
;
AP
Log
(
@"%@ - %d, %@, %d, %d, %d, %@
(%@)
"
,
[
item
title
],
[
resource
bitrate
],
[
resource
duration
],
[
resource
nrAudioChannels
],
[
resource
size
],
[
resource
durationInSeconds
],
[
resource
protocolInfo
]
,
[
item
uri
]
);
itemURL
=
[
NSURL
URLWithString
:
[
item
uri
]
]
;
}
//TODO DO SOMETHING USEFUL!
if
(
itemURL
&&
([
itemURL
.
scheme
isEqualToString
:
@"http"
]
||
[
itemURL
.
scheme
isEqualToString
:
@"rtsp"
]
||
[
itemURL
.
scheme
isEqualToString
:
@"rtp"
]
||
[
itemURL
.
scheme
isEqualToString
:
@"mms"
]
||
[
itemURL
.
scheme
isEqualToString
:
@"mmsh"
]))
{
VLCAppDelegate
*
appDelegate
=
[
UIApplication
sharedApplication
].
delegate
;
UINavigationController
*
navController
=
[[
UINavigationController
alloc
]
initWithRootViewController
:
appDelegate
.
playlistViewController
];
[
navController
loadTheme
];
appDelegate
.
revealController
.
contentViewController
=
navController
;
[
appDelegate
.
revealController
toggleSidebar
:
NO
duration
:
kGHRevealSidebarDefaultAnimationDuration
];
[
appDelegate
.
playlistViewController
performSelector
:
@selector
(
openMovieFromURL
:)
withObject
:
itemURL
afterDelay
:
kGHRevealSidebarDefaultAnimationDuration
];
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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