mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Throttle media elements' time marches on ready state updates
This commit is contained in:
committed by
Gregory Bertilson
parent
c11dc9fae9
commit
ac70eb601f
Notes:
github-actions[bot]
2026-04-10 20:22:37 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/ac70eb601f9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8809
@@ -2735,12 +2735,12 @@ void HTMLMediaElement::time_marches_on(TimeMarchesOnReason reason)
|
||||
queue_a_media_element_task([this]() {
|
||||
dispatch_time_update_event();
|
||||
});
|
||||
}
|
||||
|
||||
// AD-HOC: Run the SourceBuffer monitoring algorithm to update readyState based on buffered data relative to
|
||||
// the current playback position. This satisfies the periodic buffer monitoring in MSE:
|
||||
// https://w3c.github.io/media-source/#buffer-monitoring
|
||||
update_ready_state();
|
||||
// AD-HOC: Run the SourceBuffer monitoring algorithm to update readyState based on buffered data relative to
|
||||
// the current playback position. This satisfies the periodic buffer monitoring in MSE:
|
||||
// https://w3c.github.io/media-source/#buffer-monitoring
|
||||
update_ready_state();
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: 7. If all of the cues in current cues have their text track cue active flag set, none of the cues in other cues have
|
||||
|
||||
Reference in New Issue
Block a user