diff --git a/moli-renderer-v8/src/context_bootstrap/exposed_interfaces/metadata.rs b/moli-renderer-v8/src/context_bootstrap/exposed_interfaces/metadata.rs index c4588e2e56c..2014d4302aa 100644 --- a/moli-renderer-v8/src/context_bootstrap/exposed_interfaces/metadata.rs +++ b/moli-renderer-v8/src/context_bootstrap/exposed_interfaces/metadata.rs @@ -54,6 +54,7 @@ pub(in crate::context_bootstrap) const WORKER_SHARED_INTERFACE_NAMES: &[&str] = "VideoFrame", "RTCEncodedAudioFrame", "RTCEncodedVideoFrame", + "EncodedVideoChunk", "EventTarget", "Event", "CustomEvent", @@ -289,6 +290,7 @@ const WINDOW_AND_DEDICATED_WORKER_INTERFACE_NAMES: &[&str] = &[ "VideoFrame", "RTCEncodedAudioFrame", "RTCEncodedVideoFrame", + "EncodedVideoChunk", ]; pub(in crate::context_bootstrap) const INDEXED_DB_INTERFACE_NAMES: &[&str] = &[ diff --git a/moli-renderer-v8/src/context_bootstrap/specs/registry.rs b/moli-renderer-v8/src/context_bootstrap/specs/registry.rs index 0e93db554ee..a6a2a1e07ec 100644 --- a/moli-renderer-v8/src/context_bootstrap/specs/registry.rs +++ b/moli-renderer-v8/src/context_bootstrap/specs/registry.rs @@ -352,6 +352,10 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[ interface: web_api_interfaces::RTCTrackEvent::DESCRIPTOR, kind: ConstructorKind::Shell { length: 2 }, }, + ConstructorSpec { + interface: web_api_interfaces::EncodedVideoChunk::DESCRIPTOR, + kind: ConstructorKind::Shell { length: 1 }, + }, ConstructorSpec { interface: web_api_interfaces::External::DESCRIPTOR, kind: ConstructorKind::Illegal, diff --git a/moli-webapi/src/interfaces.rs b/moli-webapi/src/interfaces.rs index 4a0e3d3e6fe..c79a817d23a 100644 --- a/moli-webapi/src/interfaces.rs +++ b/moli-webapi/src/interfaces.rs @@ -92,6 +92,7 @@ interfaces! { RTCSctpTransport: EventTarget; RTCStatsReport; RTCTrackEvent: Event; + EncodedVideoChunk; AbortController; AbortSignal: EventTarget; AbstractRange; @@ -262,7 +263,7 @@ interfaces! { DynamicsCompressorNode: AudioNode; Element: Node; ElementInternals; - EncodedVideoChunk; + ErrorEvent: Event; Event; EventCounts;