From 0143b584ea76dabec98e8f45a0fdb32ab51a20c7 Mon Sep 17 00:00:00 2001 From: Youenn Fablet Date: Mon, 7 Jun 2021 10:43:11 +0200 Subject: [PATCH] Expose MediaStream in workers --- index.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d5d9139..71947a8 100644 --- a/index.html +++ b/index.html @@ -359,7 +359,7 @@

Transferable MediaStreamTrack

The WebIDL changes are the following:

[Exposed=(Window,Worker,AudioWorklet), Transferable]
+>[Exposed=(Window,Worker), Transferable]
 partial interface MediaStreamTrack {
 // Remove partial once we figure out how to do it without creating respec warnings.
 // No change to MediaStreamTrack exposed API.
@@ -404,5 +404,17 @@ 

Transferable MediaStreamTrack

In a sense, between these steps, the data holder is attached to the underlying source as if it was a track.

+
+

MediaStream in workers

+
+

{{MediaStreamTrack}}'s objects are exposed to workers, so can do {{MediaStream}}'s objects. +

+

The WebIDL changes are the following: +

[Exposed=(Window,Worker)]
+partial interface MediaStream {
+};
+
+