Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
abb948e5
Commit
abb948e5
authored
Oct 03, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update speed categories with latest devices, enable 4K playback on iPhone 6 (needs testing)
parent
8d25a898
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
Sources/UIDevice+SpeedCategory.m
Sources/UIDevice+SpeedCategory.m
+6
-2
Sources/VLCMovieViewController.m
Sources/VLCMovieViewController.m
+3
-0
No files found.
Sources/UIDevice+SpeedCategory.m
View file @
abb948e5
...
...
@@ -34,10 +34,14 @@
// iPhone 4S, iPad 2 and 3, iPod 4 and 5
APLog
(
@"this is a cat two device"
);
return
2
;
}
else
{
// iPhone 5, iPad 4
}
else
if
([
currentMachine
hasPrefix
:
@"iPhone5"
]
||
[
currentMachine
hasPrefix
:
@"iPhone6"
]
||
[
currentMachine
hasPrefix
:
@"iPad4"
])
{
// iPhone 5
+ 5S
, iPad 4
, iPad Air, iPad mini 2G
APLog
(
@"this is a cat three device"
);
return
3
;
}
else
{
// iPhone 6, 2014 iPads
APLog
(
@"this is a cat four device"
);
return
4
;
}
}
...
...
Sources/VLCMovieViewController.m
View file @
abb948e5
...
...
@@ -527,6 +527,9 @@
}
else
if
(
speedCategory
==
3
)
{
// iPhone 5, iPad 4
return
(
totalNumberOfPixels
<
2074000
);
// 1080p
}
else
if
(
speedCategory
==
4
)
{
// iPhone 6, 2014 iPads
return
(
totalNumberOfPixels
<
8850000
);
// 4K
}
return
YES
;
...
...
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