Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
e5d51fcc
Commit
e5d51fcc
authored
Apr 22, 2014
by
Felix Paul Kühne
Browse files
Hide aspect ratio and video effects buttons during audio-only playback (close #11296)
parent
8b86c2c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
NEWS
View file @
e5d51fcc
...
...
@@ -5,6 +5,7 @@
requested through third-party app (#11147)
* Option to set text encoding used for FTP connections (#10611)
* Media library search (#11303)
* Minor UI improvements (#11296)
2.3:
----
...
...
Sources/VLCMovieViewController.m
View file @
e5d51fcc
...
...
@@ -1488,7 +1488,28 @@
if
(
self
.
trackNameLabel
.
text
.
length
<
1
)
self
.
trackNameLabel
.
text
=
[[
_mediaPlayer
.
media
url
]
lastPathComponent
];
if
(
!
self
.
aspectRatioButton
.
hidden
)
{
CGRect
rect
=
self
.
timeDisplay
.
frame
;
rect
.
origin
.
x
+=
self
.
aspectRatioButton
.
frame
.
size
.
width
;
self
.
timeDisplay
.
frame
=
rect
;
rect
=
self
.
positionSlider
.
frame
;
rect
.
size
.
width
+=
self
.
aspectRatioButton
.
frame
.
size
.
width
;
self
.
positionSlider
.
frame
=
rect
;
self
.
aspectRatioButton
.
hidden
=
YES
;
}
}
else
{
if
(
self
.
aspectRatioButton
.
hidden
)
{
CGRect
rect
=
self
.
timeDisplay
.
frame
;
rect
.
origin
.
x
-=
self
.
aspectRatioButton
.
frame
.
size
.
width
;
self
.
timeDisplay
.
frame
=
rect
;
rect
=
self
.
positionSlider
.
frame
;
rect
.
size
.
width
-=
self
.
aspectRatioButton
.
frame
.
size
.
width
;
self
.
positionSlider
.
frame
=
rect
;
self
.
aspectRatioButton
.
hidden
=
NO
;
}
}
self
.
videoFilterButton
.
hidden
=
mediaIsAudioOnly
;
/* don't leak sensitive information to the OS, if passcode lock is enabled */
BOOL
passcodeLockEnabled
=
[[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
kVLCSettingPasscodeOnKey
]
boolValue
];
...
...
Write
Preview
Supports
Markdown
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