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

Rewind / forward is supported? #70

Open
roiniti opened this issue Jun 28, 2021 · 2 comments
Open

Rewind / forward is supported? #70

roiniti opened this issue Jun 28, 2021 · 2 comments

Comments

@roiniti
Copy link

roiniti commented Jun 28, 2021

It is possible to rewind / forward a video, if not this will be a future feature or it's even possible tto be inplemented?

@SimonIT
Copy link
Member

SimonIT commented Jun 28, 2021

Going to a specific timestamp would be straight forward for android seekTo and gwt setCurrentTime, but I have no clue for desktop

@dasisdormax
Copy link
Contributor

iOS shouldn't be a problem either.

On desktop / with FFmpeg, we would need to make it ourselves. We could call
av_seek_frame(formatContext, videoStreamIndex, timestamp, AVSEEK_FLAG_BACKWARD);
to get to the last keyframe before the selected timestamp, then decode forward and discard frames until we're there.
That second part would be the more difficult thing to get working right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants