Explorar o código

movie view: apply verbose output and stretch options on-the-run

Requires the latest MobileVLCKit to compile
Felix Paul Kühne %!s(int64=12) %!d(string=hai) anos
pai
achega
c553a66aba
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      AspenProject/VLCMovieViewController.m

+ 5 - 1
AspenProject/VLCMovieViewController.m

@@ -44,7 +44,11 @@
     [super viewDidLoad];
     self.wantsFullScreenLayout = YES;
 
-    _mediaPlayer = [[VLCMediaPlayer alloc] init];
+    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
+    NSArray *options = @[[defaults objectForKey:kVLCSettingVerboseOutput],
+                         [defaults objectForKey:kVLCSettingStretchAudio]];
+
+    _mediaPlayer = [[VLCMediaPlayer alloc] initWithOptions:options];
     [_mediaPlayer setDelegate:self];
     [_mediaPlayer setDrawable:self.movieView];