LibWeb: Update the media controls' timeline upon progress firing
Otherwise, we don't update the buffered ranges visual when paused for a blocked seek.
This commit is contained in:
parent
ca6911bacf
commit
6af0f54b15
1 changed files with 4 additions and 0 deletions
|
|
@ -176,6 +176,10 @@ void MediaControls::set_up_event_listeners()
|
|||
update_timestamp();
|
||||
return true;
|
||||
});
|
||||
add_event_listener(realm, media_element, HTML::EventNames::progress, [this] {
|
||||
update_timeline();
|
||||
return true;
|
||||
});
|
||||
add_event_listener(realm, media_element, HTML::EventNames::durationchange, [this] {
|
||||
update_timeline();
|
||||
update_timestamp();
|
||||
|
|
|
|||
Loading…
Reference in a new issue