Skip to content

Feature Request: Expose playVideoAt(index) method on YoutubeIframeRef #390

Description

@KrishW231

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions