mirror of
https://github.com/lexmount/moli.git
synced 2026-11-24 08:02:58 +00:00
feat(media): expose media stream and video interface shells
This commit is contained in:
@@ -46,6 +46,12 @@ pub(in crate::context_bootstrap) const WORKER_SHARED_INTERFACE_NAMES: &[&str] =
|
||||
"MIDIPort",
|
||||
"VideoDecoder",
|
||||
"VideoEncoder",
|
||||
"ImageBitmapRenderingContext",
|
||||
"MediaSourceHandle",
|
||||
"SourceBuffer",
|
||||
"SourceBufferList",
|
||||
"VideoColorSpace",
|
||||
"VideoFrame",
|
||||
"EventTarget",
|
||||
"Event",
|
||||
"CustomEvent",
|
||||
@@ -272,11 +278,13 @@ const WINDOW_DEDICATED_AND_SHARED_WORKER_INTERFACE_NAMES: &[&str] = &[
|
||||
];
|
||||
const DEDICATED_AND_SHARED_WORKER_INTERFACE_NAMES: &[&str] = &["FileReaderSync"];
|
||||
const WINDOW_AND_DEDICATED_WORKER_INTERFACE_NAMES: &[&str] = &[
|
||||
"VideoDecoder",
|
||||
"VideoEncoder",
|
||||
"MediaSourceHandle",
|
||||
"SourceBuffer",
|
||||
"SourceBufferList",
|
||||
"VideoDecoder",
|
||||
"VideoEncoder",
|
||||
"VideoColorSpace",
|
||||
"VideoFrame",
|
||||
];
|
||||
|
||||
pub(in crate::context_bootstrap) const INDEXED_DB_INTERFACE_NAMES: &[&str] = &[
|
||||
|
||||
@@ -180,6 +180,86 @@ const CONSTRUCTOR_SPECS_BEFORE_STREAMS: &[ConstructorSpec] = &[
|
||||
interface: web_api_interfaces::CSSTransition::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::CanvasCaptureMediaStreamTrack::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::ImageBitmapRenderingContext::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::MediaEncryptedEvent::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 1 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::MediaMetadata::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 0 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::MediaRecorder::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 1 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::MediaSession::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::MediaSourceHandle::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::MediaStream::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 0 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::MediaStreamTrack::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::MediaStreamTrackEvent::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 2 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::OverconstrainedError::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 1 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::PictureInPictureEvent::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 2 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::PictureInPictureWindow::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::RemotePlayback::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::SourceBuffer::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::SourceBufferList::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::TimeRanges::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::VideoColorSpace::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 0 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::VideoFrame::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 1 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::VideoPlaybackQuality::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::External::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
@@ -1751,10 +1831,6 @@ const CONSTRUCTOR_SPECS_AFTER_STREAMS: &[ConstructorSpec] = &[
|
||||
interface: web_api_interfaces::MediaSource::DESCRIPTOR,
|
||||
kind: ConstructorKind::MediaSource,
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::MediaRecorder::DESCRIPTOR,
|
||||
kind: ConstructorKind::Shell { length: 1 },
|
||||
},
|
||||
ConstructorSpec {
|
||||
interface: web_api_interfaces::MediaKeys::DESCRIPTOR,
|
||||
kind: ConstructorKind::Illegal,
|
||||
|
||||
@@ -48,16 +48,17 @@ interfaces! {
|
||||
VideoEncoder: EventTarget;
|
||||
CSSAnimation: Animation;
|
||||
CSSTransition: Animation;
|
||||
CanvasCaptureMediaStreamTrack: MediaStreamTrack;
|
||||
ImageBitmapRenderingContext;
|
||||
MediaEncryptedEvent: Event;
|
||||
MediaMetadata;
|
||||
MediaRecorder: EventTarget;
|
||||
ChapterInformation;
|
||||
MediaSession;
|
||||
MediaSourceHandle;
|
||||
MediaStream: EventTarget;
|
||||
MediaStreamTrack: EventTarget;
|
||||
CanvasCaptureMediaStreamTrack: MediaStreamTrack;
|
||||
MediaSession;
|
||||
|
||||
|
||||
TimeRanges;
|
||||
VideoPlaybackQuality;
|
||||
MediaStreamTrackEvent: Event;
|
||||
@@ -67,49 +68,10 @@ interfaces! {
|
||||
RemotePlayback: EventTarget;
|
||||
SourceBuffer: EventTarget;
|
||||
SourceBufferList: EventTarget;
|
||||
|
||||
VideoColorSpace;
|
||||
VideoFrame;
|
||||
AudioListener;
|
||||
AudioParamMap;
|
||||
MediaStreamAudioDestinationNode: AudioNode;
|
||||
MediaStreamAudioSourceNode: AudioNode;
|
||||
PannerNode: AudioNode;
|
||||
ScriptProcessorNode: AudioNode;
|
||||
RTCCertificate;
|
||||
RTCDTMFSender: EventTarget;
|
||||
RTCDTMFToneChangeEvent: Event;
|
||||
RTCDtlsTransport: EventTarget;
|
||||
RTCEncodedAudioFrame;
|
||||
RTCEncodedVideoFrame;
|
||||
RTCError: DOMException;
|
||||
RTCErrorEvent: Event;
|
||||
RTCIceTransport: EventTarget;
|
||||
RTCPeerConnectionIceErrorEvent: Event;
|
||||
RTCRtpScriptTransform;
|
||||
RTCRtpScriptTransformer: EventTarget;
|
||||
RTCTransformEvent: Event;
|
||||
KeyFrameRequestEvent: Event;
|
||||
RTCRtpSender;
|
||||
RTCRtpTransceiver;
|
||||
RTCSctpTransport: EventTarget;
|
||||
RTCStatsReport;
|
||||
RTCTrackEvent: Event;
|
||||
EncodedVideoChunk;
|
||||
LargestContentfulPaint: PerformanceEntry;
|
||||
PerformanceEventTiming: PerformanceEntry;
|
||||
PerformancePaintTiming: PerformanceEntry;
|
||||
PerformanceServerTiming;
|
||||
Report;
|
||||
ReportBody;
|
||||
ReportingObserver;
|
||||
SpeechSynthesisErrorEvent: SpeechSynthesisEvent;
|
||||
SpeechSynthesisEvent: Event;
|
||||
WebTransport;
|
||||
WebTransportSendGroup;
|
||||
WebTransportDatagramsWritable: WritableStream;
|
||||
WebTransportBidirectionalStream;
|
||||
WebTransportDatagramDuplexStream;
|
||||
WebTransportError: DOMException;
|
||||
|
||||
AbortController;
|
||||
AbortSignal: EventTarget;
|
||||
AbstractRange;
|
||||
@@ -125,8 +87,8 @@ interfaces! {
|
||||
AudioBufferSourceNode: AudioScheduledSourceNode;
|
||||
AudioContext: BaseAudioContext;
|
||||
AudioDestinationNode: AudioNode;
|
||||
|
||||
|
||||
AudioListener;
|
||||
AudioParamMap;
|
||||
AudioNode: EventTarget;
|
||||
AudioScheduledSourceNode: AudioNode;
|
||||
AudioParam;
|
||||
@@ -280,7 +242,7 @@ interfaces! {
|
||||
DynamicsCompressorNode: AudioNode;
|
||||
Element: Node;
|
||||
ElementInternals;
|
||||
|
||||
EncodedVideoChunk;
|
||||
ErrorEvent: Event;
|
||||
Event;
|
||||
EventCounts;
|
||||
@@ -509,10 +471,10 @@ interfaces! {
|
||||
PageTransitionEvent: Event;
|
||||
Path2D;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
LargestContentfulPaint: PerformanceEntry;
|
||||
PerformanceEventTiming: PerformanceEntry;
|
||||
PerformancePaintTiming: PerformanceEntry;
|
||||
PerformanceServerTiming;
|
||||
Performance: EventTarget;
|
||||
PerformanceEntry;
|
||||
PerformanceMark: PerformanceEntry;
|
||||
@@ -540,26 +502,26 @@ interfaces! {
|
||||
PushSubscription;
|
||||
PushSubscriptionOptions;
|
||||
QuotaExceededError: DOMException;
|
||||
|
||||
RTCCertificate;
|
||||
RTCDataChannel: EventTarget;
|
||||
|
||||
|
||||
|
||||
|
||||
RTCDTMFSender: EventTarget;
|
||||
RTCDtlsTransport: EventTarget;
|
||||
RTCError: DOMException;
|
||||
RTCErrorEvent: Event;
|
||||
RTCIceCandidate;
|
||||
|
||||
|
||||
|
||||
RTCIceTransport: EventTarget;
|
||||
RTCEncodedAudioFrame;
|
||||
RTCEncodedVideoFrame;
|
||||
RTCPeerConnection: EventTarget;
|
||||
RTCPeerConnectionIceEvent: Event;
|
||||
RTCDataChannelEvent: Event;
|
||||
|
||||
RTCPeerConnectionIceErrorEvent: Event;
|
||||
RTCRtpReceiver;
|
||||
|
||||
|
||||
|
||||
RTCRtpSender;
|
||||
RTCRtpTransceiver;
|
||||
RTCSctpTransport: EventTarget;
|
||||
RTCSessionDescription;
|
||||
|
||||
RTCStatsReport;
|
||||
RadioNodeList: NodeList;
|
||||
Range: AbstractRange;
|
||||
ReadableByteStreamController;
|
||||
@@ -569,7 +531,7 @@ interfaces! {
|
||||
ReadableStreamBYOBRequest;
|
||||
ReadableStreamDefaultController;
|
||||
ReadableStreamDefaultReader;
|
||||
|
||||
ReportBody;
|
||||
Request;
|
||||
|
||||
ResizeObserver;
|
||||
@@ -690,8 +652,8 @@ interfaces! {
|
||||
SharedWorker: EventTarget;
|
||||
SharedWorkerGlobalScope: WorkerGlobalScope;
|
||||
SpeechSynthesis: EventTarget;
|
||||
|
||||
|
||||
SpeechSynthesisEvent: Event;
|
||||
SpeechSynthesisErrorEvent: SpeechSynthesisEvent;
|
||||
SpeechSynthesisUtterance: EventTarget;
|
||||
SpeechSynthesisVoice;
|
||||
StaticRange: AbstractRange;
|
||||
@@ -774,9 +736,9 @@ interfaces! {
|
||||
WebGLTransformFeedback: WebGLObject;
|
||||
WebGLVertexArrayObject: WebGLObject;
|
||||
WebGLUniformLocation;
|
||||
|
||||
|
||||
|
||||
WebTransportError: DOMException;
|
||||
WebTransportBidirectionalStream;
|
||||
WebTransportDatagramDuplexStream;
|
||||
WebSocket: EventTarget;
|
||||
WebSocketError: DOMException;
|
||||
WebSocketStream;
|
||||
|
||||
Reference in New Issue
Block a user