LibWeb: Implement SourceBuffer.abort()

This is used by YouTube occasionally when seeking, and if it doesn't do
its job, the player gets stuck.
This commit is contained in:
Zaggy1024
2026-03-27 03:15:17 -05:00
committed by Gregory Bertilson
parent 459578c280
commit 60302b9750
Notes: github-actions[bot] 2026-04-01 07:55:50 +00:00
3 changed files with 48 additions and 1 deletions

View File

@@ -52,6 +52,9 @@ public:
// https://w3c.github.io/media-source/#addsourcebuffer-method
WebIDL::ExceptionOr<void> append_buffer(GC::Root<WebIDL::BufferSource> const&);
// https://w3c.github.io/media-source/#dom-sourcebuffer-abort
WebIDL::ExceptionOr<void> abort();
// https://w3c.github.io/media-source/#dom-sourcebuffer-changetype
WebIDL::ExceptionOr<void> change_type(String const& type);