Merge branch 'master' of github.com:limelight-stream/limelight-ios

Conflicts:
	Limelight/ViewControllers/StreamFrameViewController.m
This commit is contained in:
Cameron Gutman
2015-01-09 16:14:50 -05:00
2 changed files with 22 additions and 6 deletions

View File

@@ -57,14 +57,26 @@
[self returnToMainFrame];
}
- (void)edgeSwiped {
[_streamMan stopStream];
[self returnToMainFrame];
}
- (void) connectionStarted {
NSLog(@"Connection started");
dispatch_async(dispatch_get_main_queue(), ^{
[self.spinner stopAnimating];
[self.stageLabel setText:@"Waiting for first frame..."];
[self.stageLabel sizeToFit];
[(StreamView*)self.view setupOnScreenControls: _controllerSupport];
UIScreenEdgePanGestureRecognizer* swipeGesture = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(edgeSwiped)];
swipeGesture.edges = UIRectEdgeLeft;
if (swipeGesture == nil) {
NSLog(@"An error occured trying to create UIScreenEdgePanGestureRecognizer");
} else {
[self.view addGestureRecognizer:swipeGesture];
}
});
[(StreamView*)self.view setupOnScreenControls: _controllerSupport];
}
- (void)connectionTerminated:(long)errorCode {