فهرست منبع

Use the chapter index to look up the description

A tvOS bug exists where all chapters show the name of the first chapter,
rather than the names of each chapter. This is because the player's
current title's index is used to lookup in the chapter descriptions
array. Using the current chapter's index instead results in a valid
lookup and working chapter titles on tvOS.

Signed-off-by: Felix Paul Kühne <felix@feepk.net>
Richard Soderberg 6 سال پیش
والد
کامیت
f8ae334d49
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Apple-TV/Playback/Playback Info/VLCPlaybackInfoChaptersTVViewController.m

+ 1 - 1
Apple-TV/Playback/Playback Info/VLCPlaybackInfoChaptersTVViewController.m

@@ -135,7 +135,7 @@
     trackCell.selectionMarkerVisible = isSelected;
 
     VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
-    NSDictionary *description = [vpc chapterDescriptionsDictAtIndex:[vpc indexOfCurrentTitle]];
+    NSDictionary *description = [vpc chapterDescriptionsDictAtIndex:row];
 
     NSString *chapter = description[VLCChapterDescriptionName];
     if (chapter == nil)