Skip to content

Commit

Permalink
Expose MediaStream in workers
Browse files Browse the repository at this point in the history
  • Loading branch information
youennf committed Jun 7, 2021
1 parent d89db97 commit 0143b58
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ <h2>Transferable MediaStreamTrack</h2>
<div>
<p>The WebIDL changes are the following:
<pre class="idl"
>[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.
Expand Down Expand Up @@ -404,5 +404,17 @@ <h2>Transferable MediaStreamTrack</h2>
In a sense, between these steps, the data holder is attached to the underlying source as if it was a track.</p>
</div>
</section>
<section>
<h2>MediaStream in workers</h2>
<div>
<p>{{MediaStreamTrack}}'s objects are exposed to workers, so can do {{MediaStream}}'s objects.
<div>
<p>The WebIDL changes are the following:
<pre class="idl"
>[Exposed=(Window,Worker)]
partial interface MediaStream {
};</pre>
</div>
</section>
</body>
</html>

0 comments on commit 0143b58

Please sign in to comment.