How to get trigger information of animation play and pause button

I am building a Dash app that contains a video and an animated plotly scatterplot. I want to synchronise the video with the animation so that they both start and stop playing at the same time. Is there a way to get the “click data” from the plotly animation play and pause buttons in a similar way as the “n_clicks” property of the dash button component?
Or is there another way of coupling the video with the animation?