LibWeb: Throttle media elements' time marches on ready state updates

This commit is contained in:
Zaggy1024
2026-04-07 15:32:20 -05:00
committed by Gregory Bertilson
parent c11dc9fae9
commit ac70eb601f
Notes: github-actions[bot] 2026-04-10 20:22:37 +00:00

View File

@@ -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