Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In go back of fullscreen mode, the proportion is not re-adjusted #345

Closed
nicolascbarbosa opened this issue Dec 21, 2018 · 6 comments
Closed

Comments

@nicolascbarbosa
Copy link

This happened on Android.

@GoaGit
Copy link

GoaGit commented Dec 24, 2018

@nicolascbarbosa is the issue you are experciencing similar to what you can see in this gif:

  1. Have phone in portrait position and start a video that is embedded in the react-native-youtube component
  2. Enlarge video by clicking enlarge icon
  3. Rotate device - landscape position
  4. Rotate device back to portrait position: video automatically rotates, but the controls and video position are off

@mananjobanputra
Copy link

I am getting the same issue. Any idea How to manage?

@webdevbyjoss
Copy link

webdevbyjoss commented Jan 8, 2019

Not yet, as far as I know. By looking at the Android source code, there is no way to reset a player from the API or force the aspect ratio recalculation. Have the same issue right now, but doubtfully the elegant fix is possible.

@mananjobanputra
Copy link

Currently, It is working by below fixing. I have used example code of this repo and change width by some minor numbers on onReady event and also change width again after some timeout so it will get some more space after rendering the control. Maybe useful to someone.

onReady={e => { this.setState({ containerWidth: this.state.containerWidth + 3 }) setTimeout(() => this.setState({ containerWidth: this.state.containerWidth + 10 }), 500); }}

@alz10
Copy link

alz10 commented Mar 26, 2019

#362 try this

@davidohayon669
Copy link
Owner

sovled in c9a0c38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants