Просмотр исходного кода

playback controller: replace deprecated API call in VLCKit

This closes #143
Felix Paul Kühne 7 лет назад
Родитель
Сommit
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