When using the playList prop to pass an array of video IDs to the player, there is currently no way to programmatically jump to a specific index inside the running playlist without forcing the entire component to unmount and remount.
If my app has a custom UI that lists all the videos in the playlist (like a custom queue/tracklist), and the user taps on the 3rd video, I cannot instruct the react-native-youtube-iframe player to simply skip/jump to index 2.
Because the underlying YouTube IFrame API natively supports .playVideoAt(index), I would like a playVideoAt method exposed on the YoutubeIframeRef so we can trigger it programmatically from our React Native apps.
When using the playList prop to pass an array of video IDs to the player, there is currently no way to programmatically jump to a specific index inside the running playlist without forcing the entire component to unmount and remount.
If my app has a custom UI that lists all the videos in the playlist (like a custom queue/tracklist), and the user taps on the 3rd video, I cannot instruct the react-native-youtube-iframe player to simply skip/jump to index 2.
Because the underlying YouTube IFrame API natively supports .playVideoAt(index), I would like a playVideoAt method exposed on the YoutubeIframeRef so we can trigger it programmatically from our React Native apps.