mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:47:44 +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:
parent
e216d1a65f
commit
f31621b3f2
7 changed files with 84 additions and 13 deletions
|
@ -101,6 +101,7 @@ public:
|
|||
void resume_playback();
|
||||
void pause_playback();
|
||||
void restart_playback();
|
||||
void seek_to_timestamp(Time);
|
||||
bool is_playing() const { return m_status == PlaybackStatus::Playing; }
|
||||
bool is_buffering() const { return m_status == PlaybackStatus::Buffering; }
|
||||
bool is_stopped() const { return m_status == PlaybackStatus::Stopped; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue