react-native-youtube-iframe
react-native-youtube-iframe copied to clipboard
In IOS it is throwing error "An error occurred please try again later"
Describe the bug It is working fine for android devices same code I am using for iOS but after loading video thumbnail it throws error "an error occurred please try again later" I am trying to run it in IOS 11 simulator
Expected behavior It should play the video instead of throwing an error.
Screenshots
Smartphone (please complete the following information):
- Device: [ iPhone11] simulator
- OS + version: [ iOS 14.4]
-
react-native-youtube-iframe
2.0.1 -
react-native-webview
11.3.2
Yes I checked it ,It is showing HTML5_error
Make sure you're using react-native-youtube-iframe and not react-native-youtube.
Html5 errors are usually due to the webview (safari in your case) throwing errors. Try it on a real device to make sure it's an emulator only issue. I can confirm that it works well on my ios emulator. (bigSur, xcode 12.5)
Maybe restarting the emulator / updating MacOS would also help.
yes on real device also it is throwing error because app is live on App Store and I am using big Sur and Xcode latest version
I think it is because YouTube doesn't allow copyrighted video to be played using iframe
I also encountered this problem
"react-native-youtube-iframe": "^2.2.2",
onError return information HTML5_ Error, it cannot be played normally in debug mode
Same, in version 2.2.2 still not working
"react-native-youtube-iframe": "^2.2.2",
I think it is because YouTube doesn't allow copyrighted video to be played using iframe
No it plays on expo but not in react native cli