VDLMainViewController.m 1023 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // VDLMainViewController.m
  3. // Dropin-Player
  4. //
  5. // Created by Felix Paul Kühne on 19.11.13.
  6. // Copyright (c) 2013 VideoLAN. All rights reserved.
  7. //
  8. #import "VDLMainViewController.h"
  9. #import "VDLAppDelegate.h"
  10. @interface VDLMainViewController ()
  11. @end
  12. @implementation VDLMainViewController
  13. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  14. {
  15. self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  16. if (self) {
  17. // Custom initialization
  18. }
  19. return self;
  20. }
  21. - (void)viewDidLoad
  22. {
  23. [super viewDidLoad];
  24. // Do any additional setup after loading the view from its nib.
  25. }
  26. - (IBAction)startPlayback:(id)sender
  27. {
  28. VDLAppDelegate *appDelegate = (VDLAppDelegate *)[UIApplication sharedApplication].delegate;
  29. [appDelegate playStreamFromURL:[NSURL URLWithString:@"file:///Users/fkuehne/Downloads/Alice.m4v"]];
  30. }
  31. - (void)didReceiveMemoryWarning
  32. {
  33. [super didReceiveMemoryWarning];
  34. // Dispose of any resources that can be recreated.
  35. }
  36. @end