ahodesuka / ahoviewer

A GTK image viewer, manga reader, and booru browser
MIT License
486 stars 31 forks source link

WIP: Video Controls #129

Closed Quackdoc closed 1 month ago

Quackdoc commented 3 years ago

Thought I would start implementing #120, So far there are no GUI controls, but these are the actual functions needed for Play/Pause, Getting time, and Setting time. Unfortunately I do not know the first thing about GTK, nor do I know where to start. but I hope this will help make Dev's job a little bit easier.

Play/Pause and time seeking works fine, but it really should be set to not work with GIFs, Playbin should take care of it, so it shouldn't cause bugs, but it would probably be best not to tempt fate.

Time seeking, and current time is currently done with percentages and nanoseconds, Im hoping this will make implementing the time/seek bar (if this is the route dev want's to go) a little bit easier, but reporting time isn't implemented yet (because I forgot, sorry), unless you want it in nanoseconds.

but using GST_FORMAT_TIME + GST_TIME_ARGS (ie. https://gstreamer.freedesktop.org/documentation/application-development/advanced/queryevents.html?gi-language=cpp) will be an easy implement.

I hope this helps the dev a little bit, Love the app.

ahodesuka commented 3 years ago

I can take care of the UI stuff. I already have a general idea of how I'd want it to look. This should help me get started when I have some spare time to work on it.