davidohayon669/react-native-youtube

video buffering after change modes inline or fullscreen

Opened this issue · 0 comments

Why player starting buffering every time i change full screen to inline or vice versa ? Why it is not working smooth without pauses and unnecessary buffering when change fullscreen/inline? Is it possible to set player only to fullscreen without inline? Tested in android only.
code:

export default class YoutubePlayer extends Component<PlayerProps, PlayerState> {

  render() {
    return (
      <YouTube
        apiKey={'MY_API_KEY'}
        videoId="40yeK3qI0Pc" // The YouTube video ID
        controls={1}
        play // control playback of video with true/false
        fullscreen={true} // control whether the video should play in fullscreen or inline
        style={{ alignSelf: 'stretch', height: 300 }}
      />
    );
  }

}