Let the spinner spin until video appears

This commit is contained in:
Cameron Gutman
2018-06-02 01:02:10 -07:00
parent 30ec68cd4e
commit 42ef67d939
@@ -75,9 +75,9 @@
- (void) connectionStarted { - (void) connectionStarted {
Log(LOG_I, @"Connection started"); Log(LOG_I, @"Connection started");
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
[self.spinner stopAnimating]; // Leave the spinner spinning until it's obscured by
[self.stageLabel setText:@"Waiting for first frame..."]; // the first frame of video.
[self.stageLabel sizeToFit]; self.stageLabel.hidden = YES;
[(StreamView*)self.view setupOnScreenControls: self->_controllerSupport swipeDelegate:self]; [(StreamView*)self.view setupOnScreenControls: self->_controllerSupport swipeDelegate:self];
}); });
} }