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
603 stars 153 forks source link

Performance decreases significantly on older iPhone models #236

Closed BlackForgeOne closed 2 years ago

BlackForgeOne commented 2 years ago

Is it known that older iOS versions are a lot less responsive?

We're doing some local testing before embedding into our app, and we're testing on a variety of models.

Running on iPhone 12 (iOS 14.5), the library seems to perform reasonably well. But running on iPhone 5s (iOS 11.4) for example, the library is unusable. The video never seems to start playing, just keeps on buffering. Even when I try to click different buttons (pause, settings), they're very slow to react, if at all.

Is there a minimum supported version or is this a known bug? Couldn't find in any other tickets or docs - apologies if it is.

LonelyCpp commented 2 years ago

This library renders a webview, and runs the YouTube iframe in it. You would expect it to perform the same as YouTube does on safari on that phone. You can check how YouTube performs on safari for realistic expectations.

maybe an iPhone 5s has a hard time handling both a web view and react native rendering at the same time. I've not really tested it on phones below iPhone X

BlackForgeOne commented 2 years ago

Yep, you're right. Running youtube on safari shows same behaviour - thanks for the clarification.