Bladeren bron

Improve player view accessibility for VoiceOver Previously after the controls disappeared, it was impossible to get them back

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Fabio Ritrovato 12 jaren geleden
bovenliggende
commit
3cde4906d3

+ 3 - 0
AspenProject/VLCMovieViewController.m

@@ -181,6 +181,9 @@
         self.positionSlider.scrubbingSpeedChangePositions = @[@(0.), @(100.), @(200.), @(300)];
 
     _playerIsSetup = NO;
+
+    [self.movieView setAccessibilityLabel:NSLocalizedString(@"VO_VIDEOPLAYER_TITLE", @"")];
+    [self.movieView setAccessibilityHint:NSLocalizedString(@"VO_VIDEOPLAYER_DOUBLETAP", @"")];
 }
 
 - (BOOL)_blobCheck

+ 3 - 0
Resources/VLCMovieViewController~ipad.xib

@@ -159,6 +159,9 @@
 							<int key="NSColorSpace">3</int>
 							<bytes key="NSWhite">MAA</bytes>
 						</object>
+						<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
+							<boolean value="YES" key="IBUIIsAccessibilityElement"/>
+						</object>
 						<string key="targetRuntimeIdentifier">IBIPadFramework</string>
 					</object>
 					<object class="IBUIView" id="753155309">

+ 3 - 0
Resources/VLCMovieViewController~iphone.xib

@@ -159,6 +159,9 @@
 							<int key="NSColorSpace">3</int>
 							<bytes key="NSWhite">MAA</bytes>
 						</object>
+						<object class="IBUIAccessibilityConfiguration" key="IBUIAccessibilityConfiguration">
+							<boolean value="YES" key="IBUIIsAccessibilityElement"/>
+						</object>
 						<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
 					</object>
 					<object class="IBUIView" id="644225698">

BIN
Resources/da.lproj/Localizable.strings


BIN
Resources/de.lproj/Localizable.strings


BIN
Resources/en.lproj/Localizable.strings


BIN
Resources/es.lproj/Localizable.strings


BIN
Resources/fi.lproj/Localizable.strings


BIN
Resources/fr.lproj/Localizable.strings


BIN
Resources/he.lproj/Localizable.strings


BIN
Resources/id.lproj/Localizable.strings


BIN
Resources/it.lproj/Localizable.strings


BIN
Resources/ja.lproj/Localizable.strings


BIN
Resources/nl.lproj/Localizable.strings


BIN
Resources/ru.lproj/Localizable.strings


BIN
Resources/sk.lproj/Localizable.strings


BIN
Resources/tr.lproj/Localizable.strings


BIN
Resources/uk.lproj/Localizable.strings


BIN
Resources/vi.lproj/Localizable.strings


BIN
Resources/zh-Hans.lproj/Localizable.strings