Added setting to set the position of the rendered chapter previews. Default is the middle of the chapter.

This commit is contained in:
Brian Gerfort committed 2017-05-06 21:36:20 +02:00
1 parent a872eda5d3
commit 42f0431b25
4 files changed
+104 -51

No files matched your search

+2
View File
@@ -57,6 +57,7 @@
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"chaptersPreviewTrack"] boolValue]) {
attributes[MP42GenerateChaptersPreviewTrack] = @YES;
attributes[MP42ChaptersPreviewPosition] = [NSNumber numberWithFloat:[[NSUserDefaults standardUserDefaults] floatForKey:@"SBChaptersPreviewPosition"]];
}
_attributes = [attributes copy];
@@ -81,6 +82,7 @@
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"chaptersPreviewTrack"] boolValue]) {
attributes[MP42GenerateChaptersPreviewTrack] = @YES;
attributes[MP42ChaptersPreviewPosition] = [NSNumber numberWithFloat:[[NSUserDefaults standardUserDefaults] floatForKey:@"SBChaptersPreviewPosition"]];
}
_attributes = [attributes copy];