소스 검색

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

Requires the latest MobileVLCKit to compile
Felix Paul Kühne 12 년 전
부모
커밋
c553a66aba
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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];