wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
197 stars 31 forks source link

is there any way i can have functionality to jump to next/previous frame? #127

Closed Ansh-Rathod closed 3 months ago

Ansh-Rathod commented 3 months ago

HII, I think I saw this feature in vlc or some other editor where you can jump to the next/previous frame change with buttons I'm thinking of getting that frame change data using ffmpeg but I wonder if it's possible in the player it self or not?

wang-bin commented 3 months ago

You have to use backend api, because video_player has no such feature. next: player.seek(position: 1, flags: mdk.SeekFlag(mdk.SeekFlag.fromNow | mdk.SeekFlag.frame));, previous: player.seek(position: -1, flags: mdk.SeekFlag(mdk.SeekFlag.fromNow | mdk.SeekFlag.frame));

Ansh-Rathod commented 3 months ago

WOW, so it does have this functionality! Yes, I'm using backend API only, huge thank you for the response & plugin it self!