LibWeb: Implement some of SourceBuffer.appendBuffer()

Currently, it just fires the error event immediately.
This commit is contained in:
Zaggy1024
2026-03-26 16:19:25 -05:00
committed by Gregory Bertilson
parent e3b37694f5
commit e627376368
Notes: github-actions[bot] 2026-04-01 07:56:14 +00:00
13 changed files with 385 additions and 9 deletions

View File

@@ -7,14 +7,15 @@
#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/Bindings/ManagedSourceBufferPrototype.h>
#include <LibWeb/MediaSourceExtensions/EventNames.h>
#include <LibWeb/MediaSourceExtensions/ManagedMediaSource.h>
#include <LibWeb/MediaSourceExtensions/ManagedSourceBuffer.h>
namespace Web::MediaSourceExtensions {
GC_DEFINE_ALLOCATOR(ManagedSourceBuffer);
ManagedSourceBuffer::ManagedSourceBuffer(JS::Realm& realm)
: SourceBuffer(realm)
ManagedSourceBuffer::ManagedSourceBuffer(JS::Realm& realm, ManagedMediaSource& media_source)
: SourceBuffer(realm, media_source)
{
}