diff options
Diffstat (limited to 'macosx/HBVideoController.m')
-rw-r--r-- | macosx/HBVideoController.m | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m index eeb575ce1..355f24ad9 100644 --- a/macosx/HBVideoController.m +++ b/macosx/HBVideoController.m @@ -79,6 +79,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; [self addObserver:self forKeyPath:@"video.encoder" options:NSKeyValueObservingOptionInitial context:HBVideoControllerContext]; [self addObserver:self forKeyPath:@"video.frameRate" options:NSKeyValueObservingOptionInitial context:HBVideoControllerContext]; [self addObserver:self forKeyPath:@"video.quality" options:NSKeyValueObservingOptionInitial context:HBVideoControllerContext]; + [self addObserver:self forKeyPath:@"video.preset" options:NSKeyValueObservingOptionInitial context:HBVideoControllerContext]; [self addObserver:self forKeyPath:@"video.unparseOptions" options:NSKeyValueObservingOptionInitial context:HBVideoControllerContext]; [self addObserver:self forKeyPath:@"video.advancedOptions" options:NSKeyValueObservingOptionInitial context:HBVideoControllerContext]; } @@ -129,7 +130,17 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; } else if ([keyPath isEqualToString:@"video.quality"]) { - fVidQualitySlider.accessibilityValue = [NSString stringWithFormat:@"%@ %.2f", self.video.constantQualityLabel, self.video.quality]; + if ([fVidQualitySlider respondsToSelector:@selector(setAccessibilityValueDescription:)]) + { + fVidQualitySlider.accessibilityValueDescription = [NSString stringWithFormat:@"%@ %.2f", self.video.constantQualityLabel, self.video.quality];; + } + } + else if ([keyPath isEqualToString:@"video.preset"]) + { + if ([fPresetsSlider respondsToSelector:@selector(setAccessibilityValueDescription:)]) + { + fPresetsSlider.accessibilityValueDescription = self.video.preset; + } } else if ([keyPath isEqualToString:@"video.unparseOptions"]) { |