Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VideoFFMPEGPlayer] Add playhead to track the video's progress #109

Open
ricardomatias opened this issue May 13, 2020 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@ricardomatias
Copy link
Member

A playhead would help track how far along the video is. The playhead should be in seconds.

@ricardomatias ricardomatias added the enhancement New feature or request label May 13, 2020
@hamoid
Copy link
Member

hamoid commented Apr 9, 2024

I see that VideoPlayerFFMPEG has a newFrame event, but

            vp.newFrame.listen {
                println(it.timeStamp)
            }

seems to print only 0.0.

There's a vp.statistics but it doesn't include the last frame time. It does provide videoFramesDecoded which may be of some help, although I don't know if the system is decoding many frames before playing them. If I print that value it repeats the same numbers either 2 or 3 times (expected for a 25fps video in a 60fps environment).

@hamoid
Copy link
Member

hamoid commented Apr 9, 2024

I see tha VideoPlayerFFMPEG.kt triggers FrameEvent always with a hardcoded 0.0 time stamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants