react-native-youtube-iframe icon indicating copy to clipboard operation
react-native-youtube-iframe copied to clipboard

Android only - Encountered an error loading page

Open mMarcos208 opened this issue 1 year ago • 5 comments

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

  • Device: Macos 14.3.1 | Android 9 "react-native-webview": "^13.8.1", "react-native-youtube-iframe": "^2.3.0"

mMarcos208 avatar Feb 19 '24 18:02 mMarcos208

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.

ShahidKhanDev avatar Feb 27 '24 16:02 ShahidKhanDev

@ShahidKhanDev upgrade my react native version cause this error.

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

IOS works well.

mMarcos208 avatar Feb 29 '24 18:02 mMarcos208

@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

ShahidKhanDev avatar Mar 01 '24 02:03 ShahidKhanDev

I'm not using expo! :(

Only this cause this error

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

my internet works well

mMarcos208 avatar Mar 01 '24 13:03 mMarcos208

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

LonelyCpp avatar Apr 04 '24 05:04 LonelyCpp