mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
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:
committed by
Gregory Bertilson
parent
51c3f7c41e
commit
459578c280
Notes:
github-actions[bot]
2026-04-01 07:55:56 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/459578c280d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8655 Reviewed-by: https://github.com/tcl3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user