react-player icon indicating copy to clipboard operation
react-player copied to clipboard

Is there any way to get the video frame number every 200ms?

Open currysesame opened this issue 2 years ago • 3 comments

Be sure to search for your issue before opening a new one.

Current Behavior

Is there any way to let me get the video frame number for each 200ms? Already test the getCurrentTime, but it renew the number per second.

Expected Behavior

Return the video frame number when the video is playing for each 200ms. If the video stopped, return the same number would be great.

Tried to use getCurrentTime in this file: react-player/src/players/FilePlayer.js to get the current time, but that is not fast enough. Tried this one: https://github.com/CookPete/react-player/issues/163. But the progress.played updated per second.

How can I renew the getCurrentTime/progress.played faster ?

Environment

  • URL attempting to play: mp4 local file
  • Browser: Chrome

currysesame avatar Nov 09 '22 11:11 currysesame

Also curious, @currysesame do you have any new knowledge since Nov 9, 2022?

hoetmaaiers avatar Sep 13 '23 15:09 hoetmaaiers

Yes. I had used another method to work around. And it's fine now. I can play video and show something at the same time.

currysesame avatar Sep 14 '23 12:09 currysesame

Would you mind sharing the method you use for capturing the current frame number?

hoetmaaiers avatar Sep 14 '23 12:09 hoetmaaiers

@currysesame can you shre the work around, i need some way to get frame number faster than once per second

Spritan avatar Apr 09 '24 16:04 Spritan