From 0e32b1fcb925ffd9f214bbeab150eece1cd95f55 Mon Sep 17 00:00:00 2001 From: Youenn Fablet Date: Thu, 30 May 2024 10:57:39 +0200 Subject: [PATCH] Allow transfering MediaStreamTrack content hint --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index 68f616e..2208be4 100644 --- a/index.html +++ b/index.html @@ -399,6 +399,7 @@

Transferable MediaStreamTrack

  • Set dataHolder.`[[muted]]` to value.{{MediaStreamTrack/muted}}.

  • Set dataHolder.`[[source]]` to value underlying source.

  • Set dataHolder.`[[constraints]]` to value active constraints.

  • +
  • Set dataHolder.`[[contentHint]]` to value application-set content hint.

  • Set value.`[[IsDetached]]` to true.

  • Set value.{{MediaStreamTrack/[[ReadyState]]}} to "ended" (without stopping the underlying source or firing an `ended` event).

  • @@ -411,6 +412,7 @@

    Transferable MediaStreamTrack

  • Initialize track.{{MediaStreamTrack/readyState}} to dataHolder.`[[readyState]]`.

  • Initialize track.{{MediaStreamTrack/enabled}} to dataHolder.`[[enabled]]`.

  • Initialize track.{{MediaStreamTrack/muted}} to dataHolder.`[[muted]]`.

  • +
  • Set track application-set content hint to dataHolder.`[[contentHint]]`.

  • [=MediaStreamTrack/Initialize the underlying source=] of track to dataHolder.`[[source]]`.

  • Set track's constraints to dataHolder.`[[constraints]]`.