Skip to content

Some videos are taking forever to load in iOS #39

@ajaykumar97

Description

@ajaykumar97

First of all, thanks a lot for this amazing library to provide a utility to play the youtube videos.

I am using this youtube player for an iOS application. Most of the youtube videos are being played successfully by the player, but some of the videos take forever to load in some of the iOS devices.
For example, I am trying to play this youtube video, but it takes forever to load the video. The player get stuck with a loading indicator.

My code for the player is:

<YoutubePlayer
     loop
     videoId="moZOrq0qL3Q"
     autoPlay
     onStart={() => console.log('Video started')}
     onEnd={() => alert('Video Ended')}
     onError={() => {
          console.log('error loading video');
     }}
 />

Testing Environment:

react-native: "0.62.2"
react-native-youtube-player: "1.0.6"
iOS device: iPhone 6
iOS version: "12.4.8"

Can anyone please help me in this or suggest any workaround/solution for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions