소스 검색

playback controller: replace deprecated API call in VLCKit

This closes #143
Felix Paul Kühne 7 년 전
부모
커밋
8db0d20b8a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Sources/VLCPlaybackController.m

+ 1 - 1
Sources/VLCPlaybackController.m

@@ -138,7 +138,7 @@ typedef NS_ENUM(NSUInteger, VLCAspectRatio) {
 
 - (void)openVideoSubTitlesFromFile:(NSString *)pathToFile
 {
-    [_mediaPlayer openVideoSubTitlesFromFile:pathToFile];
+    [_mediaPlayer addPlaybackSlave:[NSURL fileURLWithPath:pathToFile] type:VLCMediaPlaybackSlaveTypeSubtitle enforce:YES];
 }
 
 - (void)playMediaList:(VLCMediaList *)mediaList firstIndex:(NSInteger)index subtitlesFilePath:(NSString *)subsFilePath