Subscribe to state change

Hi, I would like to know how to subscribe to state change for the video component? I would like to use prop ‘durationMillis’ to pass the video duration to a circular countdown component from expo.video

https://docs.expo.io/versions/latest/sdk/video.html#backstatusupdate - you can subscribe to this, and use https://docs.expo.io/versions/latest/sdk/video.html#progressupdateintervalmillis to get the updates at the interval of your choosing

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.