backmenutmp
This commit is contained in:
1 parent
a021784d48
commit
3ad8b0db71
3 files changed
+9
-2
No files matched your search
@@ -922,6 +922,7 @@ static NSMutableSet* hostList;
|
|||||||
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
||||||
if ([segue.destinationViewController isKindOfClass:[StreamFrameViewController class]]) {
|
if ([segue.destinationViewController isKindOfClass:[StreamFrameViewController class]]) {
|
||||||
StreamFrameViewController* streamFrame = segue.destinationViewController;
|
StreamFrameViewController* streamFrame = segue.destinationViewController;
|
||||||
|
streamFrame.mainframeViewcontroller = self;
|
||||||
streamFrame.streamConfig = _streamConfig;
|
streamFrame.streamConfig = _streamConfig;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
#import "StreamConfiguration.h"
|
#import "StreamConfiguration.h"
|
||||||
#import "StreamView.h"
|
#import "StreamView.h"
|
||||||
#import "LayoutOnScreenControlsViewController.h"
|
#import "LayoutOnScreenControlsViewController.h"
|
||||||
|
#import "MainFrameViewController.h"
|
||||||
|
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
@@ -22,6 +23,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
@property (nonatomic) StreamConfiguration* streamConfig;
|
@property (nonatomic) StreamConfiguration* streamConfig;
|
||||||
|
@property (nonatomic, assign) MainFrameViewController *mainframeViewcontroller;
|
||||||
|
|
||||||
|
|
||||||
-(void)updatePreferredDisplayMode:(BOOL)streamActive;
|
-(void)updatePreferredDisplayMode:(BOOL)streamActive;
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,6 @@
|
|||||||
UIScrollView *_scrollView;
|
UIScrollView *_scrollView;
|
||||||
BOOL _userIsInteracting;
|
BOOL _userIsInteracting;
|
||||||
CGSize _keyboardSize;
|
CGSize _keyboardSize;
|
||||||
|
|
||||||
#if !TARGET_OS_TV
|
#if !TARGET_OS_TV
|
||||||
CustomEdgeSwipeGestureRecognizer *_exitSwipeRecognizer;
|
CustomEdgeSwipeGestureRecognizer *_exitSwipeRecognizer;
|
||||||
CustomTapGestureRecognizer *_oscLayoutTapRecoginizer;
|
CustomTapGestureRecognizer *_oscLayoutTapRecoginizer;
|
||||||
@@ -136,7 +135,7 @@
|
|||||||
[self.view addGestureRecognizer:_playPauseTapGestureRecognizer];
|
[self.view addGestureRecognizer:_playPauseTapGestureRecognizer];
|
||||||
|
|
||||||
#else
|
#else
|
||||||
_exitSwipeRecognizer = [[CustomEdgeSwipeGestureRecognizer alloc] initWithTarget:self action:@selector(edgeSwiped)];
|
_exitSwipeRecognizer = [[CustomEdgeSwipeGestureRecognizer alloc] initWithTarget:self action:@selector(expandSettingsView)];
|
||||||
_exitSwipeRecognizer.edges = _settings.swipeExitScreenEdge.intValue;
|
_exitSwipeRecognizer.edges = _settings.swipeExitScreenEdge.intValue;
|
||||||
_exitSwipeRecognizer.normalizedThresholdDistance = _settings.swipeToExitDistance.floatValue;
|
_exitSwipeRecognizer.normalizedThresholdDistance = _settings.swipeToExitDistance.floatValue;
|
||||||
_exitSwipeRecognizer.delaysTouchesBegan = NO;
|
_exitSwipeRecognizer.delaysTouchesBegan = NO;
|
||||||
@@ -412,6 +411,10 @@
|
|||||||
[self returnToMainFrame];
|
[self returnToMainFrame];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)expandSettingsView{
|
||||||
|
[self.mainframeViewcontroller simulateSettingsButtonPress];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)edgeSwiped {
|
- (void)edgeSwiped {
|
||||||
Log(LOG_I, @"User swiped to end stream");
|
Log(LOG_I, @"User swiped to end stream");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user