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
efecbf17
Commit
efecbf17
authored
Oct 20, 2015
by
Felix Paul Kühne
Browse files
Introduce and deploy mini playback view interface protocol
parent
f2ce67d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Sources/VLCMiniPlaybackView.h
View file @
efecbf17
...
...
@@ -10,12 +10,12 @@
* Refer to the COPYING file of the official project for license.
*****************************************************************************/
#import "VLCPlaybackController.h"
#import "VLCPlayerDisplayController.h"
#import "VLCFrostedGlasView.h"
@class
VLCPlaybackController
;
@interface
VLCMiniPlaybackView
:
VLCFrostedGlasView
@interface
VLCMiniPlaybackView
:
VLCFrostedGlasView
<
VLCPlaybackControllerDelegate
,
VLCMiniPlaybackViewInterface
>
// just a state keeper for animation, has no other implementation
@property
(
nonatomic
)
BOOL
visible
;
-
(
void
)
setupForWork
:(
VLCPlaybackController
*
)
playbackController
;
@end
Sources/VLCMiniPlaybackView.m
View file @
efecbf17
...
...
@@ -17,7 +17,7 @@
#import "VLCPlayerDisplayController.h"
#import "VLCKeychainCoordinator.h"
@interface
VLCMiniPlaybackView
()
<
VLCPlaybackControllerDelegate
,
UIGestureRecognizerDelegate
>
@interface
VLCMiniPlaybackView
()
<
UIGestureRecognizerDelegate
>
{
UIImageView
*
_artworkView
;
UIView
*
_videoView
;
...
...
@@ -188,7 +188,7 @@
[
_playPauseButton
setImage
:
playPauseImage
forState
:
UIControlStateNormal
];
}
-
(
void
)
setupForWor
k
:(
VLCPlaybackController
*
)
playbackC
ontroller
-
(
void
)
prepareForMediaPlaybac
k
:(
VLCPlaybackController
*
)
c
ontroller
{
self
.
playbackController
=
playbackController
;
[
self
updatePlayPauseButton
];
...
...
Sources/VLCPlayerDisplayController.h
View file @
efecbf17
...
...
@@ -17,6 +17,13 @@ typedef NS_ENUM(NSUInteger, VLCPlayerDisplayControllerDisplayMode) {
VLCPlayerDisplayControllerDisplayModeMiniplayer
,
};
@protocol
VLCMiniPlaybackViewInterface
<
NSObject
>
@required
;
@property
(
nonatomic
)
BOOL
visible
;
@end
@interface
VLCPlayerDisplayController
:
UIViewController
@property
(
nonatomic
,
strong
)
UIViewController
*
childViewController
;
...
...
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