iOS fullscreen Video - Breaks Dimensions API
See original GitHub issueBug description:
On iOS, if the webview opens a fullscreen video and the user rotates the device, Dimensions.get('window')
(and callbacks) will return height/width switched around. Oddly, Dimensions.get('screen')
return the right values.
Works fine on Android.
To Reproduce:
Render a webview that has a video in it. Play the video full screen and rotate the device. Call Dimensions.get('window')
on a timeout or an event listener and observe returned values when the device rotates.
Expected behavior:
react-native-webview should not interfere with the Dimensions API.
Screenshots/Videos:
Environment:
- OS: iOS
- OS version: 14.3 and 14.4
- react-native version: 0.62.2
- react-native-webview version: 11.2.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:16 (4 by maintainers)
Top Results From Across the Web
Developers - iOS fullscreen Video - Breaks Dimensions API -
iOS fullscreen Video - Breaks Dimensions API. ... On iOS, if the webview opens a fullscreen video and the user rotates the device,...
Read more >[iOS Safari] Fullscreen API on a n… | Apple Developer Forums
The biggest issue is that when an input is focused, it bounces out of full screen mode, so that has to be detected,...
Read more >iPad webkitEnterFullscreen - Programatically going full-screen ...
So from what I read on Apple's site fullscreen can only be triggered if the video is playing. I couldn't programmatically go full...
Read more >Guide to the Fullscreen API - MDN Web Docs
Activating fullscreen mode ... Given an element that you'd like to present in fullscreen mode (such as a <video> , for example), you...
Read more >YouTube video size on iPad shrinks in full screen mode after ...
PiunikaWeb started as purely an investigative tech journalism website with main focus on 'breaking' or 'exclusive' news. In no time, our stories ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still a bug.
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically