Video: controlling playback and getting playback time from the video

Using Capacitor, how can I (or even “can I”) control the playback of an mp4 video such that via code, I can start, pause, and stop playback and also when the video is playing query it to determine the exact time that the playhead is at?

I need to allow the user to control the video and I need to do a specific analysis of the video based on where it is during playback. The granularity I need is by seconds. If I could get granularity of a tenth of a second that would be even better, but not necessary.

Targets would be iOS and Android.