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
613 stars 155 forks source link

Previously paused video was playing instead of current video #292

Open pluvd7j opened 1 year ago

pluvd7j commented 1 year ago

Describe the bug When we pause the current video and if we were swipe up for next video means the current video(I mean next Video) get paused in couple of seconds and previous video was playing in the background

To Reproduce Steps to reproduce the behavior: 1.Pause the current video in middle of playback 2.Swipe up or down to go for next video

Expected behavior while swipe up or down user will able to play the current video

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Note In IOS it was working fine and smooth

Additional context I just referred this page as example for my coding Creating youtube shorts component in react-native

sreuter commented 1 year ago

@pluvd7j This sounds more like a general react issue, e.g. reuse of existing elements. Did you make sure your list really returned a unique id for each video, so the keyExtractor is always assigning a unique key?

HasanAlyazidi commented 1 year ago

Hello @pluvd7j have you solved this issue?