Commit 386a3abf authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fixed UPnP playback on iOS 7

parent 137ace79
......@@ -4,6 +4,8 @@
* Improved HTTP connectivity
* Improved UPnP reliability, notably with Twonky, KooRaRoo, PlayOn
* Fixed issues unlocking the app when a passcode was never set
* Fixed custom subtitles font sizes
* Fixed UPnP playback on iOS 7
2.7.1:
------
......
......@@ -243,10 +243,19 @@
if (evaluatedObject == nil || ![evaluatedObject isKindOfClass:[NSString class]])
return NO;
if ([evaluatedObject containsString:@"http-get:*:video/"])
return YES;
if ([evaluatedObject containsString:@"http-get:*:audio/"])
return YES;
if ([evaluatedObject respondsToSelector:@selector(containsString:)]) {
if ([evaluatedObject containsString:@"http-get:*:video/"])
return YES;
if ([evaluatedObject containsString:@"http-get:*:audio/"])
return YES;
} else {
NSRange foundRange = [evaluatedObject rangeOfString:@"http-get:*:video/"];
if (foundRange.location != NSNotFound)
return YES;
foundRange = [evaluatedObject rangeOfString:@"http-get:*:audio/"];
if (foundRange.location != NSNotFound)
return YES;
}
return NO;
}]];
/* FIXME: on some servers, we can have more than 1 protocol string as different transcoding schemes are offered
......
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