LibWeb: Add MediaSourceExtensions events

Continuing the boilerplate for these interfaces.
This commit is contained in:
Shannon Booth 2024-11-18 12:13:48 +13:00 committed by Luke Wilde
commit 66530086a4
Notes: github-actions[bot] 2024-11-18 10:59:22 +00:00
19 changed files with 280 additions and 13 deletions

View file

@ -18,6 +18,12 @@ class ManagedMediaSource : public MediaSource {
public:
[[nodiscard]] static WebIDL::ExceptionOr<GC::Ref<ManagedMediaSource>> construct_impl(JS::Realm&);
void set_onstartstreaming(GC::Ptr<WebIDL::CallbackType>);
GC::Ptr<WebIDL::CallbackType> onstartstreaming();
void set_onendstreaming(GC::Ptr<WebIDL::CallbackType>);
GC::Ptr<WebIDL::CallbackType> onendstreaming();
private:
ManagedMediaSource(JS::Realm&);