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
5039f80b
Commit
5039f80b
authored
Oct 20, 2015
by
Felix Paul Kühne
Browse files
mini playback view: add support for ATV
parent
fcc41892
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCMiniPlaybackView.m
View file @
5039f80b
...
...
@@ -13,8 +13,11 @@
#import "VLCMiniPlaybackView.h"
#import "VLCPlaybackController.h"
#import "VLCPlayerDisplayController.h"
#if TARGET_OS_IOS
#import "VLCLibraryViewController.h"
#import "VLCKeychainCoordinator.h"
#endif
@interface
VLCMiniPlaybackView
()
<
UIGestureRecognizerDelegate
>
{
...
...
@@ -104,25 +107,30 @@
_labelTapRecognizer
=
[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
tapRecognized
)];
_labelTapRecognizer
.
delegate
=
self
;
_labelTapRecognizer
.
numberOfTouchesRequired
=
1
;
[
_metaDataLabel
addGestureRecognizer
:
_labelTapRecognizer
];
_metaDataLabel
.
userInteractionEnabled
=
YES
;
_artworkTapRecognizer
=
[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
tapRecognized
)];
_artworkTapRecognizer
.
delegate
=
self
;
_artworkTapRecognizer
.
numberOfTouchesRequired
=
1
;
[
_artworkView
addGestureRecognizer
:
_artworkTapRecognizer
];
_artworkView
.
userInteractionEnabled
=
YES
;
#if TARGET_OS_IOS
_labelTapRecognizer
.
numberOfTouchesRequired
=
1
;
_artworkTapRecognizer
.
numberOfTouchesRequired
=
1
;
#endif
NSNotificationCenter
*
center
=
[
NSNotificationCenter
defaultCenter
];
[
center
addObserver
:
self
selector:
@selector
(
appBecameActive
:)
name:
UIApplicationDidBecomeActiveNotification
object:
nil
];
#if TARGET_OS_IOS
[
center
addObserver
:
self
selector:
@selector
(
appBecameActive
:)
name:
VLCPasscodeValidated
object:
nil
];
#endif
return
self
;
}
...
...
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