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
eb226196
Commit
eb226196
authored
Dec 16, 2013
by
Felix Paul Kühne
Browse files
playback: toggle repeat button artwork according to state
parent
f1508ab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCMovieViewController.m
View file @
eb226196
...
...
@@ -407,6 +407,7 @@
self
.
positionSlider
.
value
=
0
.;
[
self
.
timeDisplay
setTitle
:
@""
forState
:
UIControlStateNormal
];
self
.
timeDisplay
.
accessibilityLabel
=
@""
;
[
self
.
repeatButton
setImage
:[
UIImage
imageNamed
:
@"repeat"
]
forState
:
UIControlStateNormal
];
if
(
!
[
self
_isMediaSuitableForDevice
])
{
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:
NSLocalizedString
(
@"DEVICE_TOOSLOW_TITLE"
,
@""
)
message
:[
NSString
stringWithFormat
:
NSLocalizedString
(
@"DEVICE_TOOSLOW"
,
@""
),
[[
UIDevice
currentDevice
]
model
],
self
.
mediaItem
.
title
]
delegate
:
self
cancelButtonTitle
:
NSLocalizedString
(
@"BUTTON_CANCEL"
,
@""
)
otherButtonTitles
:
NSLocalizedString
(
@"BUTTON_OPEN"
,
@""
),
nil
];
...
...
@@ -835,10 +836,13 @@
-
(
void
)
toggleRepeatMode
:(
id
)
sender
{
if
(
_listPlayer
.
repeatMode
==
VLCDoNotRepeat
)
if
(
_listPlayer
.
repeatMode
==
VLCDoNotRepeat
)
{
_listPlayer
.
repeatMode
=
VLCRepeatCurrentItem
;
else
[
self
.
repeatButton
setImage
:[
UIImage
imageNamed
:
@"repeatOne"
]
forState
:
UIControlStateNormal
];
}
else
{
_listPlayer
.
repeatMode
=
VLCDoNotRepeat
;
[
self
.
repeatButton
setImage
:[
UIImage
imageNamed
:
@"repeat"
]
forState
:
UIControlStateNormal
];
}
}
-
(
IBAction
)
switchAudioTrack
:(
id
)
sender
...
...
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