'Expo Video useNativeControls override Next and Previous button functionality

Is it possible to use useNativeControls with a pre-defined video playlist and make the Next and Previous buttons functional? I would like to avoid to implement my own custom UI - the native buttons are just fine for me but when I press Next or the Previous button nothing happens. Is there a way to catch these events and implement my own logic without customizing all of the UI outside of useNativeControls? Currently the only way I see it is the onPlaybackStatusUpdate but I am not sure how can I identify which button the user pressed.

In short: I want to use the native control UI but I want to override the Next and Previous button functionality to make it work with a pre-defined playlist.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source