0

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.

2 Answers2

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.

Source: https://www.techotopia.com/index.php/Kotlin_Android_Video_Playback_using_the_VideoView_and_MediaController_Classes

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