react-native-youtube-iframe
react-native-youtube-iframe copied to clipboard
Can we Get video id or index while using PlayList?
Describe the bug Hello,I'm currently using custom PlayList. It's no a bug.
To Reproduce Steps to reproduce the behavior:
Expected behavior I want to execute some code after all videos have finished playing. So I want to get current played video Id or the index of video Id in the array. I looked up the document and I didn't find such function provided. I want to know will this function be supported in later version or it's already been supported?
Thank you so much for your time and attention
Smartphone (please complete the following information):
- Device: iPhone7
- OS + version: iOS 14.5.1
react-native-youtube-iframeversion 2.1
Additional context Add any other context about the problem here.
this does not seem to be possible with the current set of APIs.
The iframe APIs do have getVideoUrl() and getPlaylistIndex(). Implementing an interface for either of these will help you achieve your goal.
I will add this as a TODO, and will update here when it's done :)
Thank you so much for your prompt response and great work!