Extend the getDisplayMedia() APIs to ensure that tab-capture and window-capture return a new subclass of MediaStreamTrack called FocusableMediaStreamTrack. This new subclass exposes the focus() method. This new method allows Web-applications, when capture starts, to decide whether the captured tab/window should be immediately focused, or whether the capturing tab+window should remain the focused one.
N/A
Not challenging - just feature-detect: // Pre-existing functionality: const mediaStream = await navigator.mediaDevices.getDisplayMedia(); const [track] = mediaStream.getVideoTracks(); // New functionality behind feature-detection: if (!!track.focus) { track.focus(...); }
See design-doc.
Supported on all Desktop platforms, but not on any mobile platforms.
OriginTrial desktop last | 105 (but extension to 108 hereby requested) |
OriginTrial desktop first | 102 |
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAMO6jDPC5EYjk1k%2B6_46erSvGNRYMkWk1Uxo4xGpouO4ROFDmQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/7b44f128-091e-4833-bd27-a39f82af7165n%40chromium.org.
Supported on all Desktop platforms, but not on any mobile platforms.
OriginTrial desktop last | 108 (but extension to 111 hereby requested) |
OriginTrial desktop first | 102 |
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAMO6jDO63PGOoMhJTfV1pHsPuV9VmoCVdqyx%2BpTzCtyTUYBV8w%40mail.gmail.com.