From 4ca90b06e8e5852984b3832f04e5b37b1c84e2ca Mon Sep 17 00:00:00 2001 From: Youenn Fablet Date: Thu, 11 Jan 2024 16:01:16 +0100 Subject: [PATCH] Explicitly create MediaStream tracks in getDisplayMedia algorithm --- index.html | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index db39ee4..8383f9c 100644 --- a/index.html +++ b/index.html @@ -468,8 +468,25 @@

MediaDevices Additions

  • -

    Let stream be the {{MediaStream}} object for - which the user granted permission.

    +

    Let stream be a {{MediaStream}} object.

    +
  • + +
  • +

    For each source that the user granted permission + to, run the following steps:

    +
      +
    1. +

      Let track be the result of [=create a + MediaStreamTrack|creating a MediaStreamTrack=] + with source and [=this=].

      +
    2. +
    3. +

      Add track to stream track's set.

      +
    4. +
    5. +

      [=Tie track source to MediaDevices=] with source and mediaDevices.

      +
    6. +