Commit 4fc556a7 authored by Pierre SAGASPE's avatar Pierre SAGASPE
Browse files

fix mini player not displaying, if it is use by default.

parent 996c7e23
Pipeline #267 failed with stage
in 0 seconds
......@@ -58,6 +58,7 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
@property (nonatomic, readonly) NSInteger mediaDuration;
@property (nonatomic, readonly) BOOL isPlaying;
@property (nonatomic, readonly) BOOL willPlay;
@property (nonatomic, readwrite) VLCRepeatMode repeatMode;
@property (nonatomic, assign, getter=isShuffleMode) BOOL shuffleMode;
@property (nonatomic, readwrite) float playbackRate; // default = 1.0
......
......@@ -435,6 +435,11 @@ VLCMediaDelegate, VLCRemoteControlServiceDelegate>
return _mediaPlayer.isPlaying;
}
- (BOOL)willPlay
{
return _mediaPlayer.willPlay;
}
- (VLCRepeatMode)repeatMode
{
return _listPlayer.repeatMode;
......
......@@ -289,7 +289,7 @@ static NSString *const VLCPlayerDisplayControllerDisplayModeKey = @"VLCPlayerDis
VLCPlaybackController *playbackController = [VLCPlaybackController sharedInstance];
UIView<VLCPlaybackControllerDelegate, VLCMiniPlaybackViewInterface> *miniPlaybackView = self.miniPlaybackView;
const NSTimeInterval animationDuration = 0.25;
const BOOL activePlaybackSession = playbackController.isPlaying;
const BOOL activePlaybackSession = playbackController.isPlaying || playbackController.willPlay;
const BOOL miniPlayerVisible = miniPlaybackView.visible;
const CGRect viewRect = self.view.bounds;
......
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