Commit 6ad73f5f authored by Pierre SAGASPE's avatar Pierre SAGASPE

VLCHTTPConnection : use the specific port for library sharing

(cherry picked from commit f2363755)
parent fd563e6a
......@@ -215,7 +215,7 @@
NSUInteger mediaCount = allMedia.count;
NSMutableArray *mediaInHtml = [[NSMutableArray alloc] initWithCapacity:mediaCount];
NSMutableArray *mediaInXml = [[NSMutableArray alloc] initWithCapacity:mediaCount];
NSString *hostName = [[VLCHTTPUploaderController sharedInstance] hostname];
NSString *hostName = [NSString stringWithFormat:@"%@:%@", [[VLCHTTPUploaderController sharedInstance] hostname], [[VLCHTTPUploaderController sharedInstance] hostnamePort]];
NSString *duration;
for (NSManagedObject *mo in allMedia) {
......
......@@ -25,6 +25,7 @@
- (NSString *)httpStatus;
- (BOOL)isServerRunning;
- (NSString *)hostname;
- (NSString *)hostnamePort;
- (void)moveFileFrom:(NSString *)filepath;
- (void)cleanCache;
......
......@@ -285,6 +285,11 @@
#endif
}
- (NSString *)hostnamePort
{
return [NSString stringWithFormat:@"%i", _httpServer.listeningPort];
}
- (void)moveFileFrom:(NSString *)filepath
{
/* update media library when file upload was completed */
......
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