- From: Sichao Xue (sichax) via GitHub <sysbot+gh@w3.org>
- Date: Wed, 29 May 2024 19:21:11 +0000
- To: public-webrtc@w3.org
xuesichao has just created a new issue for https://github.com/w3c/mediacapture-handle: == What does capturehandlechange event do when cross documentation navigation happen? == Hi, I see in the blog [Better tab sharing with Capture Handle](https://developer.chrome.com/docs/web-platform/capture-handle#capturing_side) : >Monitor CaptureHandle changes by listening to "capturehandlechange" events on a MediaStreamTrack object. Changes happen when: > >- The captured web app calls navigator.mediaDevices.setCaptureHandleConfig(). >- A [cross-document navigation](https://chromium.googlesource.com/chromium/src/+/main/docs/navigation_concepts.md#Same_Document-and-Cross_Document-Navigations) occurs in the captured web app. I found it not clear on what will be the value of `event.target.getCaptureHandle()` when cross-document navigation happens. ``` // When cross-document navigation happens videoTrack.addEventListener('capturehandlechange', event => { captureHandle = event.target.getCaptureHandle(); // What's the value of captureHandle? }); ``` Could you help clarify this? It seems the captureHandle will be `undefined` in this case? And when does this event gets triggered exactly? Is there a specific DOM event? Thank you. Please view or discuss this issue at https://github.com/w3c/mediacapture-handle/issues/74 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 29 May 2024 19:21:12 UTC