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

Previously paused video was playing instead of current video

Open pluvd7j opened this issue 2 years ago • 2 comments

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):

  • Device: Samsung galaxy s21 ultra
  • OS + version: Android 13
  • react-native-youtube-iframe version - 2.2.5
  • react-native-webview version- 11.24.0

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

pluvd7j avatar Feb 17 '23 16:02 pluvd7j

@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?

sreuter avatar Aug 01 '23 09:08 sreuter

Hello @pluvd7j have you solved this issue?

HasanAlyazidi avatar Sep 03 '23 23:09 HasanAlyazidi