cookpete / react-player

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
https://cookpete.github.io/react-player
MIT License
8.94k stars 1.12k forks source link

Switching device orientation fails to resize player (landscape to vertical bug) #1651

Closed guaiamum closed 1 month ago

guaiamum commented 10 months ago

Be sure to search for your issue before opening a new one. ✅

Current Behavior

Turning phone from landscape to vertical makes video overflow screen

Expected Behavior

It should assign current screen width to player after orientation change

Steps to Reproduce

Tested on iOS Chrome browser latest version

  1. Open this page on mobile with screen upright (vertical)
  2. Turn phone to landscape mode (player will go fullscreen)
  3. Turn phone vertical once again
  4. Check current behaviour

Environment

Other Information

screenshot: IMG_1149