LonelyCpp / react-native-youtube-iframe

A wrapper of the Youtube-iframe API built for react native.
https://lonelycpp.github.io/react-native-youtube-iframe/
MIT License
594 stars 147 forks source link

Android only - Encountered an error loading page #326

Open mMarcos208 opened 4 months ago

mMarcos208 commented 4 months ago

Describe the bug Encountered an error loading page {"canGoBack": false, "canGoForward": false, "code": -8, "description": "net::ERR_TIMED_OUT", "loading": false, "target": 16693, "title": "", "url": "https://lonelycpp.github.io/react-native-youtube-iframe/iframe.html?data=%7B%22rel_s%22:0,%22loop_s%22:0,%22videoId_s%22:%22XEWrQzI-T1s%22,%22controls_s%22:1,%22contentScale_s%22:1,%22cc_lang_pref_s%22:%22%22,%22allowWebViewZoom%22:false,%22modestbranding_s%22:0,%22preventFullScreen_s%22:1,%22showClosedCaptions_s%22:0%7D"}

To Reproduce upgrade react native 0.72.10 to 0.73.4

Expected behavior show me youtube video

Screenshots Screenshot_1708365587

Smartphone (please complete the following information):

An

ShahidKhanDev commented 4 months ago

Could you please describe it more?the error

encountered an error loading page {"canGoBack": false, "canGoForward": false, "code": -8, "description": "net::ERR_TIMED_OUT", "loading": false, "target": 16693, "title": "", "url":

I think is realted to the internet connection.

mMarcos208 commented 4 months ago

@ShahidKhanDev upgrade my react native version cause this error.

"react-native": "0.72.10" to "react-native": "0.73.4"

IOS works well.

ShahidKhanDev commented 4 months ago

@ShahidKhanDev upgrade my react native version cause this error.

"react-native": "0.72.10" to "react-native": "0.73.4"

IOS works well.

I am also working on a project where I have used the the same library in react native expo and it works perfectly fine for me. Here is what i got in package.json

Screenshot_20240301-072419~2.png

mMarcos208 commented 4 months ago

I'm not using expo! :(

Only this cause this error

<YoutubePlayer videoId={item.videoId} height={188} />

my internet works well

LonelyCpp commented 3 months ago

make sure that https://lonelycpp.github.io/react-native-youtube-iframe/iframe.html is not blocked