Subscribe to state change

#1

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

0 Likes

#2

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

closed #3

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

0 Likes