Explorar el Código

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

Requires the latest MobileVLCKit to compile
Felix Paul Kühne hace 12 años
padre
commit
c553a66aba
Se han modificado 1 ficheros con 5 adiciones y 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];