From e7b9d6054cb06a1d7b1fd28ca42f25d679be660b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Mon, 18 Sep 2023 13:45:41 +0200 Subject: [PATCH] s/no-focus-change/focus-capturing-application/g --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a7e2b4..7ff6413 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ const surfaceType = track.getSettings().displaySurface; if (surfaceType == "browser") { controller.setFocusBehavior("focus-captured-surface"); } else if (surfaceType == "window") { - controller.setFocusBehavior("no-focus-change"); + controller.setFocusBehavior("focus-capturing-application"); } ``` @@ -67,7 +67,7 @@ const stream = await navigator.mediaDevices.getDisplayMedia({ const [track] = stream.getVideoTracks(); if (track.getSettings().displaySurface == "browser" && track.getCaptureHandle().origin == "https://some.specific.url") { - controller.setFocusBehavior("no-focus-change"); + controller.setFocusBehavior("focus-capturing-application"); } else { controller.setFocusBehavior("focus-captured-surface"); }