Open AlanSl opened 3 years ago
Hello, thanks for the very detailed report!!
I'm not quite sure how I can test Voiceover from my simulator, I'll try the accessibility inspector if I can see what the issue is.
Can you check how voiceover works on a webpage with an youtube iframe? I would expect it to behave in a similarly. For example you can try - https://codepen.io/SurajMDurgad/pen/KKVZBoQ
Describe the bug On iOS with VoiceOver active, if an unplayed YouTube WebView is selected, it fails:
It looks like YouTube's accessibility text generator expects video metadata to have been loaded before the item is selected, which won't happen unless the the video is set to autoplay. Strangely, after this happens there is a working play button a couple of swipes down but the default play button doesn't work so the user might just go back thinking the video failed and not discover this.
Android TalkBack works as expected.
To Reproduce
accessible
prop towebViewProps
(doing so disables accessibility features within the Youtube Player like pause or skip ahead). Even something simple like this has the problem:Compare the behaviour with an autoplaying video, which does not have the problem (because the metadata is loaded before you can select the element). For example:
Expected behavior
Same behaviour as if the video is allowed to start buffering and download metadata before selecting it: no crash on select, just reads the description.
Smartphone (please complete the following information):
react-native-youtube-iframe
version : 1.4.1react-native-webview
11.0.2Expo
- not usedAdditional context
As a workaround you can make sure that the video auto-buffers if VoiceOver is on, for example: