How can I get a handle on a Video and determine if it has ended


#1

For instance if I wanted to determine if this video had ended and alert “ENDED!” when the video ends, how can I go about doing that?

https://snack.expo.io/rJ1DfWRdZ


#2

You can use onPlaybackStatusUpdate

Documentation: https://docs.expo.io/versions/latest/sdk/video.html#onplaybackstatusupdate
Example: https://docs.expo.io/versions/latest/sdk/av.html#example-2


#3

I found the example confusing but have found this stackoverflow question that helped a lot