question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS fullscreen Video - Breaks Dimensions API

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cristianoccazinspcommented, Sep 2, 2021

Still a bug.

0reactions
github-actions[bot]commented, Aug 30, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found