moonlight-ios/Limelight-iOS/StreamFrameViewController.m

45 lines
1.1 KiB
Mathematica
Raw Normal View History

//
// StreamFrameViewController.m
// Limelight-iOS
//
// Created by Diego Waxemberg on 1/18/14.
// Copyright (c) 2014 Diego Waxemberg. All rights reserved.
//
#import "StreamFrameViewController.h"
#import "VideoDepacketizer.h"
@interface StreamFrameViewController ()
@end
@implementation StreamFrameViewController
- (void)viewDidLoad
{
[super viewDidLoad];
2014-01-18 19:14:57 -05:00
StreamView* streamView = [[StreamView alloc] initWithFrame:self.view.frame];
streamView.backgroundColor = [UIColor blackColor];
2014-01-18 19:14:57 -05:00
[self.view addSubview:streamView];
2014-01-18 19:14:57 -05:00
[streamView setNeedsDisplay];
// Do any additional setup after loading the view.
NSString* path = [[NSBundle mainBundle] pathForResource:@"notpadded"
ofType:@"h264"];
NSLog(@"Path: %@", path);
2014-01-18 19:14:57 -05:00
VideoDepacketizer* depacketizer = [[VideoDepacketizer alloc] initWithFile:path renderTarget:streamView];
NSOperationQueue* opQueue = [[NSOperationQueue alloc] init];
[opQueue addOperation:depacketizer];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end