Cameron Gutman
2014-10-19 00:09:47 -04:00
parent 4c3bc16593
commit 9b6865a53b
5 changed files with 126 additions and 18 deletions

View File

@@ -42,12 +42,14 @@
// Repositions and resizes the view.
CGRect contentRect = CGRectMake(0,0, self.view.frame.size.width, self.view.frame.size.height);
streamView.bounds = contentRect;
VideoDecoderRenderer* renderer = [[VideoDecoderRenderer alloc]init];
Connection* conn = [[Connection alloc] initWithHost:inet_addr([[ConnectionHandler resolveHost:[NSString stringWithUTF8String:[MainFrameViewController getHostAddr]]] UTF8String]) width:1280 height:720];
Connection* conn = [[Connection alloc] initWithHost:inet_addr([[ConnectionHandler resolveHost:[NSString stringWithUTF8String:[MainFrameViewController getHostAddr]]] UTF8String]) width:1280 height:720
renderer: renderer];
NSOperationQueue* opQueue = [[NSOperationQueue alloc] init];
[opQueue addOperation:conn];
[opQueue addOperation:[[VideoDecoderRenderer alloc]initWithTarget:streamView]];
}
- (void)didReceiveMemoryWarning