1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

VideoPlayer/LibVideo: Implement the UI functionality for seeking

With these changes, the seek bar can be used, but only to seek to the
start of the file. Seeking to anywhere else in the file will cause an
error in the demuxer.

The timestamp label that was previously invisible now has its text set
according to either the playback or seek slider's position.
This commit is contained in:
Zaggy1024 2022-11-11 22:26:19 -06:00 committed by Andreas Kling
parent e216d1a65f
commit f31621b3f2
7 changed files with 84 additions and 13 deletions

View file

@ -36,6 +36,9 @@ private:
VideoPlayerWidget(GUI::Window&);
void update_play_pause_icon();
void update_seek_slider_max();
void set_current_timestamp(Time);
void set_time_label(Time);
void on_decoding_error(Video::DecoderError const&);
void display_next_frame();