diff options
author | Damiano Galassi <[email protected]> | 2016-10-21 10:18:22 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-10-21 10:18:22 +0200 |
commit | 2d41b000637475778a1ee198056f4f7c0b6646c6 (patch) | |
tree | 391b3adebccb97f7ecf4c774138df2a89904065a /macosx/HBVideoController.m | |
parent | 99897ef0c732ccf556311e18d33503fd80e1db4c (diff) |
MacGui: give VoiceOver the right accessibility value for the video quality slider.
Diffstat (limited to 'macosx/HBVideoController.m')
-rw-r--r-- | macosx/HBVideoController.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/HBVideoController.m b/macosx/HBVideoController.m index ef51a5a68..eeb575ce1 100644 --- a/macosx/HBVideoController.m +++ b/macosx/HBVideoController.m @@ -78,6 +78,7 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; // Observer a bunch of HBVideo properties to update the UI. [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.unparseOptions" options:NSKeyValueObservingOptionInitial context:HBVideoControllerContext]; [self addObserver:self forKeyPath:@"video.advancedOptions" options:NSKeyValueObservingOptionInitial context:HBVideoControllerContext]; } @@ -126,6 +127,10 @@ static void *HBVideoControllerContext = &HBVideoControllerContext; [fFramerateVfrPfrCell setTitle:NSLocalizedString(@"Peak Framerate (VFR)", nil)]; } } + else if ([keyPath isEqualToString:@"video.quality"]) + { + fVidQualitySlider.accessibilityValue = [NSString stringWithFormat:@"%@ %.2f", self.video.constantQualityLabel, self.video.quality]; + } else if ([keyPath isEqualToString:@"video.unparseOptions"]) { if (self.video.encoder & HB_VCODEC_X264_MASK) |