davidohayon669/react-native-youtube

Screen Resolution changes when video quality changes

Opened this issue · 0 comments

Platform: Android 10
the issue is random, one thing we have observed is, whenever video starts in low quality and further when its quality improves, its resolution changes or screen width shrinks.
Below is the code we are rendering.

<YouTube apiKey="API_KEY" videoId={String(videoURL)} play={true} fullscreen={true} controls={1} onError={(e)=>this.onVideoEnd(e)} style={{ alignSelf: 'stretch', height: "100%" }} />

Issue Screenshot:
image

Can anyone please suggest how to fix this?