feat(media): expose EncodedVideoChunk interface shell

This commit is contained in:
ldm0
2026-11-22 02:01:57 +08:00
parent db574f42d1
commit f4ddce7d9f
3 changed files with 8 additions and 1 deletions
@@ -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] = &[
@@ -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,
+2 -1
View File
@@ -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;