Is there a way to get the current frame number of the video while video is playing, or when the video has paused? using videoview.
Asked
Active
Viewed 439 times
2 Answers
1
You should be able to get it by calling getCurrentPosition() on your videoView. Such as(videoView.getCurrentPosition). and place that inside a pause button or something along those lines.
getCurrentPosition() – Returns an integer value indicating the current position of playback.
0
With the VideoWiew, you can retrieve the playback time in milliseconds with getCurrentPosition
. Then you have to make some calculations based on the frame rate of the video itself, for which I invite you to read here.

kekolab
- 801
- 10
- 24