react-native-youtube-iframe
react-native-youtube-iframe copied to clipboard
Multiple player is not working on real iOS device
I want to have multiple players playing at the same time. It works fine on the simulator. However, it doesn't work when I test on my real iOS device. While there is a player playing, if I play another, the previous one will pause or keep loading. It is the same no matter I am using the expo-cli or react-native-cli.
Is there any way that I can have multiple youtube players playing at the same time?
- Device: iphone 11 (simulator), iphone Xr (real device)
- OS + version: iOS 14.4 (Both simulator and real device)
react-native-youtube-iframeversion: 1.4.1react-native-webviewversion: 11.0.0
unfortunately I don't have a real iphone to test this on 😭
can you try going into node_modules/react-native-youtube-iframe/src/PlayerScripts.js
and editing this exact line to have an explicit closing tag (</div>)
https://github.com/LonelyCpp/react-native-youtube-iframe/blob/1ed92b576a8459f12e7f4eeb7fe9ffa64677f930/src/PlayerScripts.js#L138
Thank you for replying. I have tried to add the closing tag. Unfortunately, the problem is still here and nothing changes. 😢
I find that it works fine when it has only one player is playing sound and the others are muted. (This situation also happen in Flutter)