Commit 90026398 authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI
Browse files

Update to the list of HD-capable iOS devices

parent c3593dcb
......@@ -36,13 +36,26 @@
return platform;
}
// see http://theiphonewiki.com/wiki/Models , these come from our experience
NSString* hdCapableDevices[] = {@"iPhone5", @"iPhone6", @"iPad3", @"iPad4", @"iPod5", @"x86_64", @"i386"};
+ (BOOL) isHDVideoCapableDevice:(NSString*)device {
for (int i = 0; i<sizeof(hdCapableDevices)/sizeof(NSString*); i++) {
if ( [device hasPrefix:hdCapableDevices[i]] )
return TRUE;
}
return FALSE;
}
+ (BOOL) isHDVideoCapable {
if ([[IOSHardware platform] hasPrefix:@"iPad3"]) return TRUE;
return FALSE;
NSString* platform = [IOSHardware platform];
return [IOSHardware isHDVideoCapableDevice:platform];
}
+ (MSVideoSize) HDVideoSize:(const char *) deviceId {
if ([[IOSHardware platform] isEqualToString:@"iPad3,4"]) {
if ([IOSHardware isHDVideoCapable]) {
return MS_VIDEO_SIZE_720P;
}
return MS_VIDEO_SIZE_VGA;
......
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