LibWeb: Implement the buffered attribute on SourceBuffer

This is used to detect what data is still needed to maintain or resume
playback based on the current playback position. This is the last piece
that was preventing YouTube MSE from working.
This commit is contained in:
Zaggy1024
2026-03-27 02:13:29 -05:00
committed by Gregory Bertilson
parent 51c3f7c41e
commit 459578c280
Notes: github-actions[bot] 2026-04-01 07:55:56 +00:00
6 changed files with 62 additions and 5 deletions

View File

@@ -95,6 +95,8 @@ public:
void set_reached_end_of_stream();
void clear_reached_end_of_stream();
Media::TimeRanges buffered_ranges() const;
private:
void drop_consumed_bytes_from_input_buffer();
void unset_all_track_buffer_timestamps();