Commit efecbf17 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Introduce and deploy mini playback view interface protocol

parent f2ce67d1
......@@ -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
......@@ -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)setupForWork:(VLCPlaybackController *)playbackController
- (void)prepareForMediaPlayback:(VLCPlaybackController *)controller
{
self.playbackController = playbackController;
[self updatePlayPauseButton];
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment