Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
bb42ad62
Commit
bb42ad62
authored
Oct 26, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playback: drop accessory HUD display for touch gestures and use the generic one instead
parent
bdd4cad1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
AspenProject/VLCMovieViewController.m
AspenProject/VLCMovieViewController.m
+2
-16
No files found.
AspenProject/VLCMovieViewController.m
View file @
bb42ad62
...
...
@@ -899,20 +899,6 @@
return
type
;
}
-
(
void
)
_displayHUDwithText
:(
NSString
*
)
text
{
CGSize
screenSize
=
[
self
_screenSize
];
UILabel
*
label
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
(
screenSize
.
width
/
2
-
text
.
length
*
8
.
5
/
2
),
72
,
(
text
.
length
*
8
.
5
),
20
)];
[
label
setText
:
text
];
[
label
setAdjustsFontSizeToFitWidth
:
YES
];
[
label
setBackgroundColor
:[
UIColor
blackColor
]];
[
label
setTextColor
:[
UIColor
whiteColor
]];
[
label
setAlpha
:
0
.
55
];
[
_rootView
addSubview
:
label
];
[
UIView
animateWithDuration
:
1
animations
:
^
{
label
.
alpha
=
0
.
0
f
;}
completion
:^
(
BOOL
finished
){
[
label
removeFromSuperview
];
}];
}
-
(
void
)
panRecognized
:(
UIPanGestureRecognizer
*
)
panRecognizer
{
CGFloat
panDirectionX
=
[
panRecognizer
velocityInView
:
_rootView
].
x
;
...
...
@@ -944,7 +930,7 @@
[[
UIScreen
mainScreen
]
setBrightness
:(
brightness
+
0
.
01
)];
NSString
*
brightnessHUD
=
[
NSString
stringWithFormat
:
@"%@: %@ %%"
,
NSLocalizedString
(
@"VFILTER_BRIGHTNESS"
,
@""
),
[[[
NSString
stringWithFormat
:
@"%f"
,(
brightness
*
100
)]
componentsSeparatedByString
:
@"."
]
objectAtIndex
:
0
]];
[
self
_displayHUDwithText
:
brightnessHUD
];
[
self
.
statusLabel
showStatusMessage
:
brightnessHUD
];
}
if
(
panRecognizer
.
state
==
UIGestureRecognizerStateEnded
)
{
...
...
@@ -978,7 +964,7 @@
if
([
_mediaPlayer
isPlaying
])
[
_mediaPlayer
play
];
[
self
_displayHUDwithText
:
hudString
];
[
self
.
statusLabel
showStatusMessage
:
hudString
];
}
}
...
...
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