-
Notifications
You must be signed in to change notification settings - Fork 0
/
EarthquakeVideoViewController.m
43 lines (35 loc) · 1 KB
/
EarthquakeVideoViewController.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// EarthquakeVideoViewController.m
// Earthquake
//
// Created by Yuxuan Chen on 2/4/14.
// Copyright (c) 2014 Yuxuan Chen. All rights reserved.
//
#import "EarthquakeVideoViewController.h"
@interface EarthquakeVideoViewController ()
@end
@implementation EarthquakeVideoViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view
//NSString *stream = @"http://www.youtube.com/watch?v=FhUFLJ6tD9k";
NSString *stream = @"/Resource/HaitiVideo.mp4";
NSURL *url = [NSURL URLWithString:stream];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[_video loadRequest:request];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end